Jump to content
Sign in to follow this  
annabelr

How to prevent jquery for loading multiple times

Recommended Posts

annabelr

Hi there, I tried to use SlideDeck with Platform Pro... got bugs in the display of SlideDeck (missing images and nav). Live link : http://cohabitat.fr/v2/accueil-bis/ It appears these are caused by jquery (or parts of) being load multiple times. Head section of a page with SlideDeck integration going like this...

<script type='text/javascript' src='http://cohabitat.fr/v2/wp-content/plugins/strx-magic-floating-sidebar-maker/js/debounce.js?ver=3.0.3'></script>
	<script type='text/javascript' src='http://cohabitat.fr/v2/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
	<script type='text/javascript' src='http://cohabitat.fr/v2/wp-content/plugins/strx-magic-floating-sidebar-maker/js/strx-magic-floating-sidebar-maker.js?ver=3.0.3'></script>
	<script type='text/javascript' src='http://cohabitat.fr/v2/wp-includes/js/comment-reply.js?ver=20090102'></script>
	<script type='text/javascript' src='http://cohabitat.fr/v2/wp-content/plugins/google-calendar-events/js/jquery-qtip.js'></script>
	<script type='text/javascript' src='http://cohabitat.fr/v2/wp-content/plugins/slidedeck-lite-for-wordpress/lib/jquery-mousewheel/jquery.mousewheel.min.js?ver=1.3.6'></script>
	<script type='text/javascript' src='http://cohabitat.fr/v2/wp-content/plugins/slidedeck-lite-for-wordpress/lib/slidedeck.jquery.lite.pack.js?ver=1.3.6'></script>
	
The solution seems to reside in enqueueing scripts loading (with wp_enqueue_scripts). But i can't figure out how to (i guess it requires modifying the
print_pagelines_option('headerscripts');

header.php function, but that's well beyond my knowledge. Can anyone with coding skills help? Thx

Share this post


Link to post
Share on other sites
cmunns

All the scripts in Platform should already be enqueued, is this a slide deck wordpress plugin you are using?

Share this post


Link to post
Share on other sites
annabelr

Hello Adam, Yes it is SD Lite for wordpress. Have you already come across the issue?

Share this post


Link to post
Share on other sites
cmunns

No we have not. What exactly is the display error? It seems to be functionally okay and if the plugin is loading additional scripts I'm sure that they are necessary (of course you could comment out lines to test if it is actually necessary or not) For one the css looks like it could be tweaked a touch to get the third nav item there, but is that all?

Share this post


Link to post
Share on other sites
annabelr

Hi Adam, If you could be more specific on the tweaks needed to have the third nav item displayed i would be very grateful as i can't figure it... As for the rest, SD doesn't retrieve the third post's image (neither the one in the post, nor the featured image) as it should. I posted on the SD community support page but no answer apart from the script enqueuing tip.

Share this post


Link to post
Share on other sites
Andrew

Hmm. Well there are a lot of scripts there. I'd say you need to deactivate all your plugins until you get just slidedeck working... I didn't see any duplicate loading; but you'll need to work with the SlideDeck guys on that one.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×