Skip to content

Defer non-critical JS/CSS to improve performance - #230

Merged
psvenk merged 2 commits into
masterfrom
defer
Dec 26, 2020
Merged

psvenk merged 2 commits into
masterfrom
defer

Conversation

@psvenk

@psvenk psvenk commented Dec 26, 2020

Copy link
Copy Markdown
Member

Restructure parts of login.html and home.html so that the JS and CSS that is not needed for the first paint is deferred and does not hold up rendering the page.

Restructure parts of login.html and home.html so that the JS and CSS
that is not needed for the first paint is deferred and does not hold up
rendering the page.
@psvenk
psvenk requested a review from notrodes December 26, 2020 21:22
@psvenk psvenk added this to the 2.7.0 milestone Dec 26, 2020
@psvenk

psvenk commented Dec 26, 2020

Copy link
Copy Markdown
Member Author

@notrodes I deferred login.js because it only contains the "remember me" code. Why do you think this is essential?

Instead of putting scripts in the body, move them to the <head> and just
defer them.
@psvenk
psvenk merged commit 8935fee into master Dec 26, 2020
@psvenk
psvenk deleted the defer branch December 26, 2020 23:23
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