Re:Ask HN: Do you care about downtime of the 3rd party JavaS...
by greenyoda on Saturday July 18, 2015 @01:16PM
(#9908134)
"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?
Re:Ask HN: Do you care about downtime of the 3rd party JavaS...
by captn3m0 on Sunday July 19, 2015 @03:53AM
(#9910401)
That sounds like an interesting idea. Maybe I'll try this.
Re:Ask HN: Do you care about downtime of the 3rd party JavaS...
by forcer on Saturday July 18, 2015 @12:00PM
(#9907861)
do 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.
Re:Ask HN: Do you care about downtime of the 3rd party JavaS...
by captn3m0 on Sunday July 19, 2015 @03:55AM
(#9910404)
I 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/scrip...
Re:Ask HN: Do you care about downtime of the 3rd party JavaS...
by zhte415 on Saturday July 18, 2015 @11:50PM
(#9909991)
> 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?
Re:Ask HN: Do you care about downtime of the 3rd party JavaS...
by captn3m0 on Sunday July 19, 2015 @03:53AM
(#9910400)
We are getting a blob of minified JS anyway.
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.