jarodPT Posted March 23, 2016 Share Posted March 23, 2016 (edited) Hi, I'm owner of the followind domain with prestashop 1.6: www.jarodmobile.com I've done some optimization to reduce page load time but it still needs some improvemet: https://gtmetrix.com/reports/www.jarodmobile.com/hPblnKjT One of the points i want to improve is the facebook like page to load asynchronous to reduce page load time. I've other issues like Add Expires headers i'm not being able to do to some links in my page. Can someone give me some insights on this issues? Edited March 23, 2016 by jarodPT (see edit history) Link to comment Share on other sites More sharing options...
Andrej Stas Posted March 24, 2016 Share Posted March 24, 2016 how about this solution? http://stackoverflow.com/questions/5724994/how-can-i-make-facebook-like-buttons-faster Try just this portion (and add #xfbml=1 at the end of the URL, should be the same result on your site but async loading): <div id="fb-root"></div><script>(function() {var e = document.createElement('script'); e.async = true;e.src = document.location.protocol +'//connect.facebook.net/en_US/all.js#xfbml=1';document.getElementById('fb-root').appendChild(e);}());</script> Link to comment Share on other sites More sharing options...
jarodPT Posted March 24, 2016 Author Share Posted March 24, 2016 Thanks for the repply Andrej, Unfortunatly my knowlegde of programing is not good enough, so i tried to change the .js and it didn't work. Any more ideas? Link to comment Share on other sites More sharing options...
Andrej Stas Posted April 7, 2016 Share Posted April 7, 2016 Thanks for the repply Andrej, Unfortunatly my knowlegde of programing is not good enough, so i tried to change the .js and it didn't work. Any more ideas? I did some more research and it seems it will really require some technical skills. Maybe you could find a programmer to do it. Here you have information about directly from a FB employee: http://calendar.perfplanet.com/2011/the-art-and-craft-of-the-async-snippet/ And from FB: https://www.facebook.com/notes/facebook-engineering/under-the-hood-the-javascript-sdk-truly-asynchronous-loading/10151176218703920/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now