7

According to this link prefetch , prefetching is working only for specific browsers. Unfortunately for me, I need it to work mostly on mobile devices.

Anyone have a solution how to preload, prefetch, cache page so it works for iOS? (Safari)

Roberts Šensters
  • 585
  • 1
  • 7
  • 23

3 Answers3

0

Use Jquery mobile, here is the documentation and here is the download link.

user10089632
  • 5,216
  • 1
  • 26
  • 34
  • Pardon my ignorance, but how does jQuery mobile solve the problem? For example, if I want to use prefetch to fetch audios or videos that may be added to the page (via JS functions) before they are added to the page, how does jQuery mobile accomplish that? – Alice Wonder Sep 16 '17 at 12:10
0

One solutions here is to go with base64 images.

Following links might be useful for further investigation. https://en.wikipedia.org/wiki/Data_URI_scheme How to display base64 encoded image in html

There are similar options with prefetch like "dns-prefetch", "preconnect" and "subresource" but support on IOS safari is not great(as of today). https://css-tricks.com/prefetching-preloading-prebrowsing/

yallam
  • 1,224
  • 1
  • 12
  • 12
-1

Nowadays Safari mobile supports preload https://caniuse.com/?search=preload

Eugene Fidelin
  • 2,049
  • 23
  • 22
  • @victorsc please read the full question carefully, it also includes preload: "Anyone have a solution how to preload, prefetch, cache page so it works for iOS? (Safari)" – Eugene Fidelin Sep 22 '21 at 07:09