preload-webpack-plugin icon indicating copy to clipboard operation
preload-webpack-plugin copied to clipboard

can you support add crossorigin="anonymous" options for log tracking

Open cloudyan opened this issue 7 years ago • 3 comments

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>

cloudyan avatar Apr 08 '18 05:04 cloudyan

sorry, I'll think about it again

cloudyan avatar Apr 08 '18 05:04 cloudyan

I found the setting about crossorigin="anonymous"

  • output.crossOriginLoading = 'anonymous'
  • html-webpack-inject-attributes-plugin

cloudyan avatar Apr 08 '18 06:04 cloudyan

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?

edwin-tandiono avatar Dec 07 '20 10:12 edwin-tandiono