4 ms·
Yes, I've been personally facing issues because the CDN server of a particular JS app that we integrate is slow. We can't host it ourselves because that way we
by captn3m0 11y ago
Yes, I've been personally facing issues because the CDN server of a particular JS app that we integrate is slow.
We can't host it ourselves because that way we miss out on updates. However, its non-critical to our app, so I'm thinking of marking it as async so it doesn't hamper the page load times.
- forcer 11y agodo you think your script would work if you just changed it from sync to async? I know some services do not provide async versions and converting from sync to async manually is not recommended.
- captn3m0 11y agoI was thinking of the async attribute in HTML5 for script tags[0]. I was hoping that the browser would just mark the script as non-blocking and continue the render, which works fine for us. [0]: https://developer.mozilla.org/en/docs/Web/HTML/Element/script#Attributes https://developer.mozilla.org/en/docs/Web/HTML/Element/scrip...
- greenyoda 11y ago"We can't host it ourselves because that way we miss out on updates." Couldn't you just have a cron job that grabs the latest copy from the CDN every night and caches it on your own server?
- captn3m0 11y agoThat sounds like an interesting idea. Maybe I'll try this.
- zhte415 11y ago> We can't host it ourselves because that way we miss out on updates. Are you happy getting pushed updates that you've not checked and verified?