W
W
WapSter2021-02-08 11:29:13
Vue.js
WapSter, 2021-02-08 11:29:13

Loading nuxt resources with a defer attribute?

My pagespeed is complaining that the main thread is being heavily blocked by scripts. I want to avoid this by substituting the defer attribute for nuxt scripts. I can't find any information on how to do this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Pastukhov, 2021-02-08
@wapster92

meta defer
script async
prefetch and preload

A
Alexander Dergunov, 2021-03-14
@dergunovs

For scripting Nuxt itself? If so, then he does it himself. If for external ones, then if possible it is better to do delayed loading for 5 seconds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question