drilkmopsD
Reactiflux2y ago
41 replies
drilkmops

drilkmops – 15-59 Aug 19

This is gonna be a really dumb question I should know the answer to.

I’m building a localization library. I have a big list of locale data that I only need to load a portion of each time. I dont want my end users to need any additional setup.

Is there a way for a static website to like “lazy load” the extra locale data when they’re needed only? So when someone visits the static page they only get
en
, but if something for
fr
is used, it “fetches” that data somehow? I’d like to not require additional fetches to other endpoints, but CDN is likely fine I suppose.
Was this page helpful?