Skip to content

Reduce page size by only loading necessary JS - #1502

Merged
fnielsen merged 1 commit into
WDscholia:masterfrom
carlinmack:refactor-JS
Jul 17, 2021
Merged

fnielsen merged 1 commit into
WDscholia:masterfrom
carlinmack:refactor-JS

Conversation

@carlinmack

@carlinmack carlinmack commented Jul 12, 2021 •

Copy link
Copy Markdown
Collaborator

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