Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graceful handling for getJS 404s #3

Open
theroux opened this issue Oct 21, 2013 · 0 comments
Open

Add graceful handling for getJS 404s #3

theroux opened this issue Oct 21, 2013 · 0 comments

Comments

@theroux
Copy link

theroux commented Oct 21, 2013

In our dev environment we're using boot getJS but if someone forgets to check in a JS file to Github, it knocks out everyone else's JS as well. Would be nice if 404s did not affect the loading of other scripts.

<script type="text/javascript"> Boot.getJS({ src: 'http://o.aolcdn.com/os/aol/beacon.min.js', defer: 'ready', callback: '' }); Boot.getJS({ src: '%SITE-se-CDNRootURL%/js/plugins/jquery.clingify.js%SITE-se-CDNCacheBuster%', defer: 'ready', callback: '' }); Boot.getJS({ src: '%SITE-se-CDNRootURL%/js/se-nav-header.js%SITE-se-CDNCacheBuster%', defer: 'load', callback: '' }); Boot.getJS({ src: '%SITE-se-CDNRootURL%/js/se-article-share.js%SITE-se-CDNCacheBuster%', defer: 'load', callback: '' }); Boot.getJS({ src: '%SITE-se-CDNRootURL%/js/se-river.js%SITE-se-CDNCacheBuster%', defer: 'ready', callback: '' }); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant