Jquery playing up
Permalink
Hi I have a mare of a site in terms of JQuery load. It's probably a simple fix but my eyes are about to fall out looking at this. I had to look at ways of speeding the site so I introduced miser which helped somewhat. Now I don't see this as the problem as it was fine a couple of days ago. So in edit mode nivo slider show works fine, so does scroll to top / exit edit mode and nothing works in JQuery even though the JQuery is there.
Here is the sitehttp://www.amicus-environmental.co.uk... if someone could help need to get this sorted ASAP, I would be very grateful before I launch my mac out the window!
Here is the sitehttp://www.amicus-environmental.co.uk... if someone could help need to get this sorted ASAP, I would be very grateful before I launch my mac out the window!
HI There, That's the bit I don't get, it's when signed in but does not load when when signed out got me miffed any ideas why this could be
Hi,
I saw the comments you made on the Miser thrad. You said "For some reason this is not displaying in core elements/header_required.php
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');"
And also "but if I remove it from there and place it in elements/header.php on the theme it works that's very strange"
I am not sure what you mean exactly, is it there or not, and if not how can you remove it?
Anyway what you might want to try is:
- check in the root elements folder if header_required.php is not being overridden
- check that header_required.php (original or overriding one) does actually have the line of code loading jquery
- check that jquery is not set to only load in edit mode (if isEdit...) as this is a handy tip by Andrew that many of us use
- make sure your header.php has the line <?php Loader::element('header_required'); ?> just after <head>. Without it jquery won't load
- check wether you actually have only one header element in your theme's element folder. Different pages might actually be using different header elements which would explain why your home page behaves differently than the others.
I saw the comments you made on the Miser thrad. You said "For some reason this is not displaying in core elements/header_required.php
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');"
And also "but if I remove it from there and place it in elements/header.php on the theme it works that's very strange"
I am not sure what you mean exactly, is it there or not, and if not how can you remove it?
Anyway what you might want to try is:
- check in the root elements folder if header_required.php is not being overridden
- check that header_required.php (original or overriding one) does actually have the line of code loading jquery
- check that jquery is not set to only load in edit mode (if isEdit...) as this is a handy tip by Andrew that many of us use
- make sure your header.php has the line <?php Loader::element('header_required'); ?> just after <head>. Without it jquery won't load
- check wether you actually have only one header element in your theme's element folder. Different pages might actually be using different header elements which would explain why your home page behaves differently than the others.
Actually Jquery is definitely not there. You are loading Jquery UI, then Jquery anchor, and then nivo slider and other scripts concatenated by miser but jquery is not there and the javascript debugger actually throws out errors complaining that jquery is not there.