Getting jQuery via Google CDN breaks the plugin
-
I’m using the HTML5-Boilerplate technique to load jQuery via Google CDN with fallback to local files. The following code is in my footer.php
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="<?php bloginfo('template_directory') ?>/js/libs/jquery-1.10.2.min.js"><\/script>')</script>
But doing this, breaks the plugin. The browser will not load the full site. It stops and hangs right there. If I remove the CDN loading and use the fallback, the plugin works fine.
Is this an issue you are able to reproduce?
Kind regards
Alex
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Getting jQuery via Google CDN breaks the plugin’ is closed to new replies.