Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize deployment protocol #593

Open
andrewsu opened this issue Feb 17, 2023 · 1 comment
Open

optimize deployment protocol #593

andrewsu opened this issue Feb 17, 2023 · 1 comment

Comments

@andrewsu
Copy link
Member

andrewsu commented Feb 17, 2023

The original deployment protocol to https://sulab.github.io/DrugMechDB/ was based entirely on github actions. But then the data got so big that we overran the time limits for github actions in the jekyll build step, so we had to do the jekyll build locally and commit/push the rendered HTML files. That process is described here. But now, the data is even so big that we are right at the edge of what Github pages will serve without complaining (1GB total site size). (EDIT: now at 1.6 GB, and the deployment is failing.)

Thankfully I think there is a really obvious solution. It looks like >90% of that size is due to the HTML code for the side navigation bar, and that is repetitively duplicated for every HTML page on our site. So each of our 5000 HTML files is 2.8MB, and all but ~15kb of that is the navigation bar. So that could definitely be optimized (either with a jquery load or a server-side include?). This issue tracks the exploration and implementation of an alternate deployment protocol.

@andrewsu
Copy link
Member Author

Perhaps web components would be helpful, as described in https://daverupert.com/2017/07/jekyll-includes-are-cool/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant