Skip to content

Add defer to the script tag in the usage section#53

Open
waldyrious wants to merge 1 commit intodohliam:gh-pagesfrom
waldyrious:patch-1
Open

Add defer to the script tag in the usage section#53
waldyrious wants to merge 1 commit intodohliam:gh-pagesfrom
waldyrious:patch-1

Conversation

@waldyrious
Copy link
Copy Markdown

This way the script waits until the DOM is ready to execute.

This way the script waits until the DOM is ready to execute.
@dohliam
Copy link
Copy Markdown
Owner

dohliam commented Feb 11, 2023

@waldyrious Thanks for this PR!

It makes sense (in theory) to add the defer attribute here, but do you have any examples of pages that load slowly enough for this to make a difference? Also, if it makes sense to add it here, should we also be adding it to index.html as well?

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