Cacheable Option or Async analytics

jericopulvera
3
jericopulvera
commented 5 months ago

What problem does this feature solve?

pagespeed insight optimization suggestion.

What does the proposed changes look like?

It would swap out analytics js to galite when cache: true

Just thought that it would be a good idea to have this in main analytics module of nuxt.

Thanks

idea
0
equinusocio
0
equinusocio
commented 3 months ago

@MatteoGabriele Hi, any update on this?

0
MatteoGabriele
95
MatteoGabriele
commented 2 months ago

you could create a ternary statement in the configuration using the customResourceURL property.

something like:

{
  customResourceURL: cached ? 'foo.js' : 'bar.js'
}
0
ricardogobbosouza
663
ricardogobbosouza
commented a month ago

@MatteoGabriele I think we can close this

0
Informations
Feature Request โ€ข Open
#c31 - Created 5 months ago