Please help me to understand the following.
I generate an JS object with some kind of data using PHP (WordPress), like:
Then I render my section via JS using
myVar object and pass all image URLs (which are not displaying initially) to a service worker for downloading them into the cache.
But in Chrome (Network tab) I see ALL images being downloaded while the page is loading.
Is that regular browser behaviour or did I miss something?
I don’t need them to be downloaded in the beginning, but only via SW or when my script reacts on a user event and changes image
Thanks in advance!