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

Inlined JavaScript adds 20K to every HTML file #11994

Open
nealrichardson opened this issue Jan 30, 2025 · 0 comments
Open

Inlined JavaScript adds 20K to every HTML file #11994

nealrichardson opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request websites Issues creating websites
Milestone

Comments

@nealrichardson
Copy link

I was trying to figure out why my documentation site, rendered by Quarto, was taking up around 60MB when rendered to HTML. I found that every .html file (all 273 of them) has the same JavaScript inlined at the bottom of them, adding up to around 20K for each file, or roughly 10% of the total rendered site size.

It seems to be coming from here: https://github.com/quarto-dev/quarto-cli/blob/1dc41fab2e7839c36f55aa0ba21d93c9c9a43ffa/src/resources/formats/html/templates/quarto-html.ejs

It would be nice if this could be refactored and either included in one of the other JS files we already load, or even if it were in its own file, we would only have to have one copy of it in the project, and it would be cacheable.

@cscheid cscheid self-assigned this Jan 30, 2025
@cscheid cscheid added enhancement New feature or request websites Issues creating websites labels Jan 30, 2025
@cscheid cscheid added this to the Future milestone Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request websites Issues creating websites
Projects
None yet
Development

No branches or pull requests

2 participants