Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
Are service workers suitable to cache assets from other pages than the one active?

I'm considering to learn and use service workers to speed up a website I'm currently developing. It's a full custom wordpress site, theme made from zero by me.

I've got some big js and css assets to manage. In detail:

  • one big 'shared' css, and the a lot of page-specific smaller ones

  • one big 'shared' js, and the a lot of page-specific smaller ones

  • another big 'semi-shared' js, which I use only for some pages (where I built a couple of mini Vue apps)

In particular, I'm interested in caching the last one, the 'semi-shared', in background while and when the user is navigating other pages that don't use it, so that when users evcentually come to the vue mini apps, js are already loaded.

So basically, example, while I'm visiting /home or other pages, service workers should load the assets needed for /vue-app. Are the service workers suitable for this?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda