Hello, I have several scripts/elements on my site and I want some of them to load after others.
I have some Facebook social plugins on the site and those tend to load slowly because they have to pull info from the Facebook servers and that in turn delays the main content in the center of my site which is basically a Jquery slideshow.
So, I want certain content to load only after the rest of the page has loaded:
Live chat button
Ratepoint review box
Wibiya bar on the bottom
I want a way to load all of those things after the rest has loaded fully.
I am using other Jquery elements on the page so I already have that JS file loaded so a solution using Jquery would be fine.
I was looking into the .ready() function but I'm not sure if that's really what I'm looking for.
I was also looking at window.onload but I can't do a document.write in those and I don't know how else to put the Facebook code in there.
That code is in this format:
<fb:like-box profile_id="123287161037735" width="460" connections="16" stream="false" header="false"></fb:like-box>
Please help, thanks!!