× Joomla Facebook Connect support forum

Topic-icon ASynchronous Loading Issue

Active Subscriptions:

None
14 years 1 month ago #21466 by Ivan
Hi,

For version 4.0.2 I had manage to use this custom script in order for my tabs to work since the loading of the system plugin was causing an issue with my site.
I have upgrade to 4.1.2 however i notice that there is still the issue of my tabs not showing properly with the new system plugin code for 4.1.2.

I still have the same issue and it seems I have to modify this new 4.1.2 system plugin the same as I did for 4.0.2 in order to get it to work. I have added an image attachement below which is the code i am using on my live site running 4.0.2 and with this code my tabs render properly. Can you please assist into how I can go modifying the system plugin javascript code for 4.1.2 to make it load asynchronously. Please see code below

The topic has been locked.
Support Specialist
14 years 1 month ago #21495 by alzander
Replied by alzander on topic ASynchronous Loading Issue
Ivan,
Sorry for the delay. We don't anticipate ever adding the asynchronous loading that you've added, since it shouldn't be required. The way we include the Javascript is already asynchronous, so doing it twice is simply a way to delay the loading even more, which isn't optimal. Not sure why your site needs it, but any time you upgrade, you'll need to make the change.

The Javascript is loaded in the /plugins/system/jfbcsystem.php file. You should be able to find the block you're looking for by searching for 'all.js'. Then, add your async_load() function around it as necessary. If you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #21542 by Ivan
Replied by Ivan on topic ASynchronous Loading Issue
Hi alex with IE debugger i keep getting this error :

Line: 107
Error: Unable to get value of the property 'appendChild': object is null or undefined

I can login fine on my development server using firefox but IE keep throwing the error above.
If i try to login it hangs until i do a refresh then it would connect.
The topic has been locked.
Support Specialist
14 years 1 month ago #21554 by alzander
Replied by alzander on topic ASynchronous Loading Issue
Ivan,
Can you let me know what page I should be looking at to see this? The appendChild javascript is very basic in that it's looking for the head section of the HTML and trying to push the Facebook Javascript library into that area. However, IE has big issues doing that if the whole document hasn't been parsed yet. Since you're trying to make our call into a different type of asynchronous call, it's possible that the inclusion of the JS library is happening before the document has been parsed, and is the cause of the error.

I'm not sure if we can fix this for you, as we still don't understand why it's necessary in the first place. Seeing the page may help though.

Thanks,
Alex
The topic has been locked.