8

Many of the site's features fail in areas where CDN's are not available. In those cases, the site (which does detect the problem) displays an error alert bar. I believe that This problems can be easily solved with a simple fall-back mechanism to another CDN. (Quick background: Is 'Google Web Fonts' or CDN bad? and Is Google’s CDN for jQuery available in China?).

While waiting for a delayed flight at a remote airport lounge, I took the opportunity to learn a bit of JS and write an extension to solve this problem.

The result of those 3 hours work is a Chrome browser extension available. Essentially it bypasses CDN by targeting specific requests and redirecting.

I just hope it can help others.

Small Disclaimer: This is the first extension I ever wrote , and my JS skills are basically NULL. If anyone want to help testing it, improve it, criticize or downvote - be my guest.

10
  • 2
    Also related: What else do I need
    – rene
    Sep 7, 2014 at 11:47
  • @MartijnPieters. Thanks for the comment. 1st-I included the examples in order for people that DO have access to all the cdn´s to be able to visually see the problems. 2nd-I already wrote in the original question that I am sorry for it´s length.3rd-Downvoting this question will not make the problem go away (nor is that an answer).If your proposed answer is the likes of "if you do not have access to our chosen CDN´s like we already wrote in the requirements than go away, do not use the site ,and please do not bother us with petty requests" so please write it as an answer.I might just accept it . Sep 7, 2014 at 23:58
  • @MartijnPieters . Another point regarding your comment - I also wrote in the original question that I understand the costs ( did you read the question or just auto-vote ? ) but what I suggested was a fallback. that means that the extra files will not be served to ALL users , but only those who do not have CDN available. I assume that is a bit less than "millions". Also, the difference between serving the jQuery.min and the alert bar which the system already serve would be ridiculously low . Sep 8, 2014 at 0:03
  • The difference is not ridiculously low when you consider the amount of traffic that Stack Overflow gets. It's like how Google gets a significant bang for their buck when they eliminate 10 characters from their CSS. And yeah, I agree with Martijn here. I tend to be verbose myself, but you could seriously make this point just as effectively (or more so) in a much shorter post. Make the images external links if you really think they need to be there for illustration—people who can't imagine can click on them. Sep 8, 2014 at 6:36
  • @MartijnPieters - No problem. It is not a personal thing against you. really . I just tried to demonstrate. Deleted now. Please see update . ( I hope you will not find it "does not show any research effort; it is unclear or not useful" like you did before...) Sep 9, 2014 at 11:35
  • @CodyGray - I never said a fall-back means to serve from own-server. In fact , I proposed other CDNs as fallback ( there is also a Microsoft CDN for jQuery ... ) , and also this - just in cases the first one fails. About the question being too long . I can not apologize more . Please see update. Sep 9, 2014 at 11:39
  • @ObmerkKronen: I edited a little more to focus on your content.
    – Martijn Pieters Mod
    Sep 9, 2014 at 11:51
  • @MartijnPieters - Ok. You might want to add those related : meta.stackoverflow.com/q/267715/1244126, meta.stackoverflow.com/q/258288/1244126, meta.stackoverflow.com/q/269000/1244126 or at least point them to the possible solution described in this question Sep 9, 2014 at 12:31
  • @ObmerkKronen: why not add them yourself? Add a 'related posts' section perhaps.
    – Martijn Pieters Mod
    Sep 9, 2014 at 13:11

0

You must log in to answer this question.

Browse other questions tagged .