Cacheable Option or Async analytics

jericopulvera
8
jericopulvera
commented 8 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 6 months ago

@MatteoGabriele Hi, any update on this?

0
MatteoGabriele
95
MatteoGabriele
commented 5 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
753
ricardogobbosouza
commented 4 months ago

@MatteoGabriele I think we can close this

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