Closed myst729 closed 1 year ago
Hey, There is a example for set defer attribute:
// ...
plugins: [
vue(),
cdn({
generateScriptTag: (name, url) => ({
attrs:{
defer: true
}
}),
//...
The same with async, hope it help anyone in need 😛
Attributes like
crossorigin
andintegrity
are very useful in regards of monitoring. Also would like to havedefer
or other custom attributes define on demand.