Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!