andrewandopen Posted August 12, 2020 Share Posted August 12, 2020 Hey guys, getting the attached error on all of my sites that are using gsap. Any idea why this might be? Thanks 2 Link to comment Share on other sites More sharing options...
cangeylan Posted August 12, 2020 Share Posted August 12, 2020 i'm getting the same error as well. Are servers down? Link to comment Share on other sites More sharing options...
mulegoat Posted August 12, 2020 Share Posted August 12, 2020 Looks like a problem with the Cloudflare CDN and it's affecting all file hosted there, not just GSAP. I moved my js files to local server until it's fixed. 1 Link to comment Share on other sites More sharing options...
andrewandopen Posted August 12, 2020 Author Share Posted August 12, 2020 Thanks for the update @mulegoat. Generally am I better off hosting all my js files myself rather than using a CDN? Link to comment Share on other sites More sharing options...
Richard1604 Posted August 12, 2020 Share Posted August 12, 2020 seems to be back again now; there is a trade off as regards hosting js files yourself and using a cdn. generally speaking the cdn is better as it reduces load on your web server but the downside is a very occasional loss of service. 2 Link to comment Share on other sites More sharing options...
mulegoat Posted August 12, 2020 Share Posted August 12, 2020 When stuff like this happens, then yes! But it's pretty rare and it will likely be fixed by the time I've written this. Upside of CDNs are better performance, caching, automatic version bumps if you want to load the latest versions (though this can also cause issues with breaking changes) etc but it depends on the site you're running and your server capability. Personally I've never had any issues hosting files locally...but servers can go down too 2 Link to comment Share on other sites More sharing options...
andrewandopen Posted August 12, 2020 Author Share Posted August 12, 2020 Thanks everyone! Link to comment Share on other sites More sharing options...
ZachSaucier Posted August 12, 2020 Share Posted August 12, 2020 Historically CDNs are very reliable but this is Cloudflare's second outage in the last month, so that's a bit surprising. In production it's probably best to use multiple CDNs so that if one goes down there's a backup (alternative CDNs include JSDelivr). CDNs going down is not in our control but we're still sorry about the outage! 5 hours ago, mulegoat said: automatic version bumps if you want to load the latest versions Most CDNs have stopped this practice as it lead to more issues that it was worth. But CDNs can help with performance and load size due to cacheing and distribution of their servers. 2 Link to comment Share on other sites More sharing options...
OSUblake Posted August 12, 2020 Share Posted August 12, 2020 5 hours ago, ZachSaucier said: In production it's probably best to use multiple CDNs so that if one goes down there's a backup It's just an extra line of code. <script src="cdn1.gsap.js"></script> <script>window.gsap || document.write('<script src="cdn2.gsap.js">\x3C/script>')</script> 6 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now