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

Reduce page size by only loading necessary JS #1502

Merged
merged 1 commit into from
Jul 17, 2021

Conversation

carlinmack
Copy link
Collaborator

@carlinmack carlinmack commented Jul 12, 2021

This PR replaces the JS QID exists check with a Jinja template check instead.

This means that the JS will not appear on pages it isn't needed, reducing page size.
For example, the /author/ page goes from 27kb to 12kb.

Pages which do need the JS are not affected

This means that the JS will not appear on pages it isn't needed, reducing page size.
For example, the /author/ page goes from 27kb to 12kb
@fnielsen fnielsen merged commit 437941f into WDscholia:master Jul 17, 2021
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

Successfully merging this pull request may close these issues.

2 participants