3 ms·
Probably better to split your font, and put your critical glyphs somewhere fast. Plus localStorage limits are very low, a couple decent sized fonts will blow yo
by microcolonel 7y ago
Probably better to split your font, and put your critical glyphs somewhere fast. Plus localStorage limits are very low, a couple decent sized fonts will blow your budget.
- EGreg 7y agoIs IndexedDB bigger? Why not use that?
- bhl 7y agoYou can. Another thing you can do is setup a service worker and intercept requests to Google Fonts, responding with an entry from cache or indexeddb instead.
- deleted 7y ago[deleted]
- EGreg 7y agoThat service worker stuff doesn’t work in iOS Safari though Can service workers intercept requests to other sites?
- ficklepickle 7y agoIt does since like 11.1. Yes, SW can cache all resources. This is how offline PWAs work.
- EGreg 7y agoTalkin about WebView