Problem with autostart

Page: 1

Author Post
Member
Registered: Mar 2015
Posts: 1
I have upgraded from Floatbox 5 to 6.0.4. And now I am experience some problems with the markup on the page (The page in the background) when the page has loaded.
If I load it manualy or with the code below there is no problems:


$(document).ready(function(){
fbPageOptions = {
afterFBLoaded: function() { fb.start({ href:'/somepage.htm', rev:'' }); }
};
});


What can be the problem?

Thanks very much in advance :-)
Administrator
Registered: Aug 2008
Posts: 3382
Not sure what you're trying to accomplish by the chain of ready and loaded, but it's sure to give grief delaying the setting of fbPageOptions.

You don't need any of that. Drop everything except for the fb.start call. As long as that's fired after the script element for floatbox.js, it should work.

Page: 1