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

feat: load scripts via async script tag #34

Merged
merged 1 commit into from
Mar 16, 2020
Merged

Conversation

DylanPiercey
Copy link
Contributor

Description

This PR removes the asset loading strategy which previously inlined preload links and orchestrated script execution order.

It turns out this was unnecessary since the webpack runtime actually orchestrates script execution properly even when assets are loaded in the incorrect order. This means we are able to switch to a much simpler and better supported solution of using <script async>. 🎉

Checklist:

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

    
BREAKING CHANGE: Webpack now controls async script order.
@DylanPiercey DylanPiercey merged commit 3feb008 into master Mar 16, 2020
@DylanPiercey DylanPiercey deleted the async-script branch April 5, 2021 15:30
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.

1 participant