Hey,
I am upgrading an older site that was using jQuery 1.8.3 and am bumping jQuery to 1.12.4 and using the 1.4.1 migrate plugin for the time being. I see that jQuery had been called the following way
and am wondering if that is still necessary these days, and if I should do something similar for
Is that just so if the CDN is down it calls it from the local server? Do people do this still?
I am upgrading an older site that was using jQuery 1.8.3 and am bumping jQuery to 1.12.4 and using the 1.4.1 migrate plugin for the time being. I see that jQuery had been called the following way
Code:
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php bloginfo('template_url'); ?>/assets/scripts/vendor/jquery-1.12.4.min.js"><\/script>')</script>
and am wondering if that is still necessary these days, and if I should do something similar for
Code:
<script src="https://code.jquery.com/jquery-migrate-1.4.1.min.js"></script>
Is that just so if the CDN is down it calls it from the local server? Do people do this still?