I setup my project following the nuxt guides in slicemachine.dev
One step involved creating the new nuxt app.
npx create-nuxt-app my-slicemachine-project
The default nuxt.config.js that is produced includes this:
head: {
// other head code
,script: [{
"src": "https://cdn.polyfill.io/v2/polyfill.min.js?features=Element.prototype.classList"
}, {
"src": "https://cdn.jsdelivr.net/npm/focus-visible@5.0.2/dist/focus-visible.min.js"
}]
},
I've been running chrome lighthouse performance tests and its telling me these CDN references are
worth looking over.
QUESTIONS
- Do I need these lines for prismic to work? I tried deleting them and everything seemed fine, just checking in.
- I can at least move focus-visible to my package.json file yeah? Doesn't need to load via CDN no?
- Anyone have guidance on moving the pollyfill that just adds features=Element.prototype.classList out of here?
Appreciate your answers.