Topic-icon Social tweet/like/share buttons load slowly

Active Subscriptions:

None
I only use this component for open graph and social sharing; there's no need for users nor authentication.

The buttons are set up in a custom code module using the easy tags. I've used the easy tag parameters to specify their current look. I've also placed them in boxes with matching background color (nothing fancy). They appear and work as expected. However, they load very slowly.

Watch and see how they load: stearns-law.com/about-us/collaborative-practice

I understand that they load their JS from their network's site, and that is one factor. However, what are some other things can I do on my end to make them load faster, appear all at once, or some other method that makes it looks less glitchy?

I'm grateful for any ideas.
The topic has been locked.
Support Specialist
6 years 3 months ago #63462 by alzander
I just tested and the buttons appeared within about 1s of the page loading. For me, the first time I loaded the page, the page loaded, the buttons started appearing, then the support box 'dropped' down from the top of the page. By the time the support box passed the social buttons, they were already rendered. Subsequent reloads didn't have the support box 'drop', but that as a good way to judge their loading on the first attempt.

You're correct that the buttons load via Javascript. The social network Javascript also only runs after the page has been loaded, which means all <head> Javascript has been loaded and the full HTML is available. On your site, it looks like the load time is about 1.5s. That's not bad at all, but anything you can do to remove Javascript or CSS files or to compress/minify them will help. Tools like JCH Optimize are really good at this and usually play just fine with JFBConnect.

I hope that helps give you some ideas, but if you need anything else, please let me know.

Thanks,
Alex
The topic has been locked.