4 ms·
Great execution and appreciate the thought process. I’m sure many of us here, find it useful. > One tricky part was that many sites block iframes, so what I ha
by mandeepj 4y ago
Great execution and appreciate the thought process. I’m sure many of us here, find it useful.
> One tricky part was that many sites block iframes, so what I had to do was save the entire website into its constituent HTML, CSS, and JS, and I displayed that instead in the iframe.
I’m sure you know it, those artifacts might get outdated soon. They don’t need to be synced in real-time or maybe never. Cloudflare threads (or something like that) can be used for updates, in case you plan to go that route.
Please don’t stop here. It should go on.
- satvikpendem 4y agoThanks for your kind words. Could you please explain more about Cloudflare threads? I didn't see any reference on them when I googled it. Are you saying to periodically run a function that automatically saves the website locally and the iframe can point to the new local versions? If so, yeah I might do that in the future soon.
- mandeepj 4y ago> Could you please explain more about Cloudflare threads? I read about threads sometime back and knew it’s not workers; but I can’t find that reference. So, for now, Workers seems to be the best bet. > Are you saying to periodically run a function that automatically saves the website locally and the iframe can point to the new local versions? Yes! Sorry for the late response
- satvikpendem 4y agoThanks. I think I'll migrate over to images or videos instead of iframes actually, as my bandwidth is getting overloaded due to how heavy all the websites are, whereas I can optimize images and videos.
- mandeepj 4y ago> as my bandwidth is getting overloaded due to how heavy all the websites are, whereas I can optimize images and videos. how about using gifs instead?
- satvikpendem 4y agoGIFs are even worse, no? I use `<video autoplay loop muted playsinline>` now which basically act like GIFs in that they autoplay and loop but don't consume the storage space of GIFs. https://web.dev/replace-gifs-with-videos/ https://web.dev/replace-gifs-with-videos/ has some good comparisons