Of course CDN reference should always be used with backup, like this:
<script src="google cdn jquery"></script>
<script>window.jQuery || document.write('<script src="local jquery"></script>')</script>or if use
Modernizr.load :
Modernizr.load([
{
load: 'google cdn jquery ',
complete: function () {
if ( !window.jQuery ) {
Modernizr.load('local jquery');
}
}
},
{
// This will wait for the fallback to load and
// execute if it needs to.
load: 'needs-jQuery.js'
}
]);That's why we need that header.pstpl too.