Skip to content

Adjust the deferred scripts#14

Merged
rviscomi merged 5 commits intorviscomi:mainfrom
dgrammatiko:defer
Jun 19, 2023
Merged

Adjust the deferred scripts#14
rviscomi merged 5 commits intorviscomi:mainfrom
dgrammatiko:defer

Conversation

@dgrammatiko
Copy link
Contributor

  • Scripts with type=module are deferred by default MDN thus they should be in the same level as those with the defer attribute.
  • Also updated the sync level css selector to ignore the same rule ([src][[type*=module]])
  • This PR patches both scripts (+ webpagetest)

Copy link
Owner

@rviscomi rviscomi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry! I had this comment sitting in Pending this whole time.

Do we need *=?

dgrammatiko and others added 2 commits June 19, 2023 15:38
Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>
@rviscomi
Copy link
Owner

Thanks @dgrammatiko!

@rviscomi rviscomi merged commit a0cb9ef into rviscomi:main Jun 19, 2023
rviscomi added a commit that referenced this pull request Jun 19, 2023
Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>
@dgrammatiko dgrammatiko deleted the defer branch June 19, 2023 15:17
rviscomi added a commit that referenced this pull request Jun 20, 2023
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