| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Oh I just realized It will break If there's listener for DOMContentLoaded in the script. |
Sorry, something went wrong.
|
I'm not sure what happend. |
Sorry, something went wrong.
|
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Sorry, something went wrong.
|
emmmmm, ping |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #10752
This PR add a branch to detect what if defer attribute has been specified on script tag or not.
And if so, All script will be wrapped into a DOMContentLoaded event listener.
Here's an example for the changes:
We have a script:
And a html tmeplate:
And a webpack config:
Before changes:
And It will caused an exception:
** before changes with blocking **
That works fine.
After changes (whatever blocking or not):
And everything works fine.