Reload code only works the first time
-
Hello,
I have an issue with the reload code for FB & Twitter widgets on my WP pages. Indeed, it well works the first time (on the reload of the first page) but it does not work anymore on clicking on the next pages of the menu.
Here is the reload source code :
// For Twitter widget
(function(d,s,id)
{
var js,fjs=d.getElementsByTagName(s)[0];
if(!d.getElementById(id))
{
js=d.createElement(s);
js.id=id;
js.src=”//platform.twitter.com/widgets.js”;
fjs.parentNode.insertBefore(js,fjs);
}
}
(document,”script”,”twitter-wjs”));// For FB widget
(function(d, s, id)
{
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id))
return;
js = d.createElement(s);
js.id = id;
js.src = “//connect.facebook.net/fr_FR/all.js#xfbml=1&appId=148447561848324”;
fjs.parentNode.insertBefore(js, fjs);
}
(document, ‘script’, ‘facebook-jssdk’));And here is the web site current link : https://lebelaccident.free.fr/new
Thanks for your help !
https://www.ads-software.com/extend/plugins/advanced-ajax-page-loader/
- The topic ‘Reload code only works the first time’ is closed to new replies.