preload-webpack-plugin
preload-webpack-plugin copied to clipboard
can you support add crossorigin="anonymous" options for log tracking
beacuse 'Script error.'
https://stackoverflow.com/questions/5913978/cryptic-script-error-reported-in-javascript-in-chrome-and-firefox
<script src="https://xxx.com/xxx.js" crossorigin="anonymous"></script>
sorry, I'll think about it again
I found the setting about crossorigin="anonymous"
- output.crossOriginLoading = 'anonymous'
- html-webpack-inject-attributes-plugin
Using html-webpack-inject-attributes-plugin causes warnings to appear on Chrome:
A preload for '...' is found, but is not used due to an integrity mismatch.
The resource ... was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
Also it appears that the preloaded scripts are fetched twice. Any idea to solve this?