Welcome Guest, Not a member yet? Register   Sign In
Header is loaded at the end
#5

There can be a number of reasons for this error one calling jQuery before it is loaded,
or if hosted by a CDN it may be blocked or down.

Fix:

Code:
// First try loading jQuery from Google's CDN
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

// Fall back to a local copy of jQuery if the CDN fails
<script>
window.jQuery || document.write('<script src="http://mysite.com/jquery.min.js"><\/script>'))
</script>

Also load a local copy for a backup, change the path to point to jQuery.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Header is loaded at the end - by Datenshi - 10-30-2018, 08:45 AM
RE: Header is loaded at the end - by dave friend - 10-30-2018, 10:51 AM
RE: Header is loaded at the end - by php_rocs - 10-30-2018, 05:30 PM
RE: Header is loaded at the end - by Pertti - 10-31-2018, 02:48 AM
RE: Header is loaded at the end - by InsiteFX - 10-31-2018, 03:07 AM
RE: Header is loaded at the end - by Datenshi - 10-31-2018, 07:54 PM
RE: Header is loaded at the end - by garimapatil - 02-06-2019, 12:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB