Javascript not loading with Load content Dynamically

Latest Reply from hedgehog at 2014-02-01 07:34:08 Solution
I really like dynamic content loading it loads pages extremely fast and I would really like to use it. I run into problems with some plugins that want to load javascript. When it just loads the body the JS doesn't seem to load.
Is their a way to get the javascript to load with dynamic content loading enabled? Or is there a way to disable Dynamic content loading on certain pages?
Hi!
To fix this you can add the following attribute to the link to the page you want not to load dynamically:
rell="no-dynamic"
I'd like to purchase the Estate Agent theme, though I'm having trouble with the javascript as well. Where do I add the rell="no-dynamic" in this embed code from jotform? Thank you for any suggestions!

<script type="text/javascript" src="http://form.jotform.us/jsform/0155"></script>
I'd like to purchase the Estate Agent theme, though I'm having trouble with the javascript as well. Where do I add the rell="no-dynamic" in this embed code from jotform?

<script type="text/javascript" src="http://form.jotform.us/jsform/0155"></script>
Hi!
You have to add this attribute to the link to the page you want not to load dynamically. Besides, you can simply turn off "Load Content Dynamically" on page Themes Settings --> Layout in the dashboard to disable this option.
I'm having the same problem (although with HiTech theme) - when "load content dynamically" is enabled, then NextGen Gallery doesn't load as it should. It loads perfectly if you'll hit "refresh" in the browser after the initial load.
Since I like the effect of "load cotent dynamically", is there any way of refreshing the "gallery" page only once, after it has loaded. That way we could have dynamic content loading and javascript both working.

Would this code work and where should I add it?

<script type='text/javascript'>

(function()
{
if( window.localStorage )
{
if( !localStorage.getItem( 'firstLoad' ) )
{
localStorage[ 'firstLoad' ] = true;
window.location.reload();
}
else
localStorage.removeItem( 'firstLoad' );
}
})();

</script>



Or this one?
<script type="text/javascript">
$(document).ready(function(){

//Check if the current URL contains '#'
if(document.URL.indexOf("#")==-1)
{
// Set the URL to whatever it was plus "#".
url = document.URL+"#";
location = "#";

//Reload the page
location.reload(true);

}
});
</script>


If not, could you please ellaborate, where to put the
 rell="no-dynamic" 
Cant find out where are the links that direct you to the specific page!? Do I have to add it in the Theme Settings -> Integration in the dashboard or where?

This thing has given headaches to many SMTheme's users, so may help out a lot of them...
I have to apologise in advance, but I'm not an advanced coder or else I wouldn't use themes;)

Leave a reply

Add codeAdd image