Friday, 9 October 2020

How to correct "preload key requests" performance problem on lighthouse with vue-cli and vue.config.js

I use vue-cli to build my vue.js project.

When I use lighthouse, I see a big opportunities of performance : "Preload Key requests" with these warnings:

  • A preload was found for ".../js/chunk-vendors.505a9ffc.js" but was not used by the browser. Check that you are using the crossorigin attribute properly.
  • A preload was found for ".../js/app.a1661204.js" but was not used by the browser. Check that you are using the crossorigin attribute properly.
  • A preload was found for ".../css/chunk-vendors.89b73702.css" but was not used by the browser. Check that you are using the crossorigin attribute properly.
  • A preload was found for ".../css/app.9ea691b0.css" but was not used by the browser. Check that you are using the crossorigin attribute properly.

Do anyone have a solution to fix it with vue-cli and vue.config.js to modify the webpack config?

And can you explain the problem?



from How to correct "preload key requests" performance problem on lighthouse with vue-cli and vue.config.js

No comments:

Post a Comment