nakul Posted July 20, 2013 Share Posted July 20, 2013 I used google speed optimizer. https://developers.g...2F&mobile=false Most of the things are done and images will also be done. But the following things i cant understand. help me out with these. http://www.tabsort.org/.../2b48f8d9d0e94ccf5bffd4cb6cd50988.js (115.4KiB) http://www.facebook.com/.../likebox.php?... (2.6KiB of inline JavaScript) http://www.tabsort.org/ (511B of inline JavaScript) Link to comment Share on other sites More sharing options...
vekia Posted July 20, 2013 Share Posted July 20, 2013 i removed the module file from the thread. if you want to use facebook script - it's necessary to include external libraries, there is no way to eliminate it. Link to comment Share on other sites More sharing options...
nakul Posted July 21, 2013 Author Share Posted July 21, 2013 i removed the module file from the thread. if you want to use facebook script - it's necessary to include external libraries, there is no way to eliminate it. i removed the module file from the thread. what it means? can you elaborate it? leave facebook link. but what about the other two? Thanks. Link to comment Share on other sites More sharing options...
Dh42 Posted July 21, 2013 Share Posted July 21, 2013 the other two look like they are coming from modules. You can move them from the header to the footer and use a js onLoad event to execute them. Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 you attached module .php file, license of the module doesn't allow to share it in public, only authors have got possibility to do that Link to comment Share on other sites More sharing options...
nakul Posted July 22, 2013 Author Share Posted July 22, 2013 Thanks for your reply. But still i dont understand what to do? Please can you clearify each steps? Thanks Link to comment Share on other sites More sharing options...
Pippo3000 Posted October 17, 2013 Share Posted October 17, 2013 (edited) guys, let me step in here, too. I have the same issue with one big code of js loading: 254.1KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering. http://www.my-domain.de/themes/prestashop/cache/180febbacbb51ee6f3d5f91f502d9f24.js (119.1KiB As you can see it is in the cache folder, any idea what that could be and how to defer the parsing and/or add the <script async> tag to it? there are more js files being complained about and I am working on them with Tomer for his (notably free, so thanks for the support) Google+ and FacebookLike modules. But this cache one here above accounts for 50% of the js code complained about. Phil Edited October 17, 2013 by Pippo3000 (see edit history) Link to comment Share on other sites More sharing options...
nathanielleee Posted March 4, 2014 Share Posted March 4, 2014 im really wanting to hear an explanation as well on the cached fie Link to comment Share on other sites More sharing options...
rodgerz Posted April 24, 2014 Share Posted April 24, 2014 Me to! Same problem here, pageload is 10sec! Dont know how this happend. Since last weekend our site is extremely slow. Verwijder JavaScript-code die het laden blokkeert: http://mammoet.nl/…ache/4ccce40737f7f3f00a75c424ee087ec7.js http://mammoet.nl/themes/mammoet/js/bootstrap.js http://mammoet.nl/themes/mammoet/js/custom.js Google said after speedtest that this code blocks loading the rest of the page. Somebody an answer to this problem? we are on Presta 1.5.6.2. Really thanks Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2014 Share Posted April 24, 2014 For PrestaShop I have solved issue of JavaScript loading top|bottom. The module provides complete management of JavaScript load positions and has been 'well' received by community members who area now using JavaPro. Learn more here: Module JavaPro Link to comment Share on other sites More sharing options...
rodgerz Posted April 24, 2014 Share Posted April 24, 2014 Can you tell me for shure that this will really help in our case? Because the js file stands in cache map of the (site/theme/cache/) our site is http://mammoet.nl Please give it a check, if this is the 100% solution, i will really like to buy this module! thanks again for the answer Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2014 Share Posted April 24, 2014 Can you tell me for shure that this will really help in our case? Because the js file stands in cache map of the (site/theme/cache/) our site is http://mammoet.nl Please give it a check, if this is the 100% solution, i will really like to buy this module! thanks again for the answer this module has helped all that have used it, please see review in module topic and/or my shop. while it might look complicated, as I tend to add advanced features, it is in fact 'very' simple to use and with built in simulator you can test your changes without affecting visitors view until you are ready to go live. Link to comment Share on other sites More sharing options...
Dh42 Posted April 24, 2014 Share Posted April 24, 2014 This might give you some insight to what is happening as well. http://blog.dh42.com/prestashop-debug-profiling/ Link to comment Share on other sites More sharing options...
Dh42 Posted April 24, 2014 Share Posted April 24, 2014 From my looks at the site it is taking around 8 seconds before the server spits out the first byte of information, http://screencast.com/t/1K3UO5vI after it the 8 seconds of processing it only takes 1.2 seconds for the page to be spit out and fully loaded. I personally would figure out why it is taking 8 seconds for the server to spit out the page, defering the parsing of JS will only affect the 1.2 second time. The 8 second time is more critical in my opinion. Link to comment Share on other sites More sharing options...
rodgerz Posted April 24, 2014 Share Posted April 24, 2014 thanks for the response, after making some changes (that was before never the problem) the speed is now between 4.5-5 seconds! Because we dont have a left column, i deleted all left column module hooks! That maded this change! If i put debug on, i only see that in the first row the "initcontent" takes 4.7 seconds! Has this something to do with the java? or is this really a other problem? thanks people for thinking with me! Link to comment Share on other sites More sharing options...
rodgerz Posted April 24, 2014 Share Posted April 24, 2014 From my looks at the site it is taking around 8 seconds before the server spits out the first byte of information, http://screencast.com/t/1K3UO5vI after it the 8 seconds of processing it only takes 1.2 seconds for the page to be spit out and fully loaded. I personally would figure out why it is taking 8 seconds for the server to spit out the page, defering the parsing of JS will only affect the 1.2 second time. The 8 second time is more critical in my opinion. we are now busy for 2 days to find the problem in the 8 seconds! ( 2 programmers, hosting company, some presta experienced people) see last post, now we are on +-5 seconds! Link to comment Share on other sites More sharing options...
Dh42 Posted April 24, 2014 Share Posted April 24, 2014 My best estimation would be increase the server speed and maybe use a caching module. Link to comment Share on other sites More sharing options...
goldies Posted December 17, 2016 Share Posted December 17, 2016 For PrestaShop I have solved issue of JavaScript loading top|bottom. The module provides complete management of JavaScript load positions and has been 'well' received by community members who area now using JavaPro. Learn more here: Module JavaPro Hi i have bought your module and have some problems when i use them. I loose "date and button add to cart" from Countdown Specials - Flash sales module. Also Paypal payment module not working then any more, it is shown but when you click on payment with Paypal nothing happens. Can you please help? I also write you over contact in your store but get no answer... Regards Link to comment Share on other sites More sharing options...
El Patron Posted December 18, 2016 Share Posted December 18, 2016 Hi i have bought your module and have some problems when i use them. I loose "date and button add to cart" from Countdown Specials - Flash sales module. Also Paypal payment module not working then any more, it is shown but when you click on payment with Paypal nothing happens. Can you please help? I also write you over contact in your store but get no answer... Regards Hi, when you install JavaPro, it enters 'simulator mode', in that actual code only executes from that IP. This allows you to 'test' which .js files can be moved bottom and which cannot. It is not possible for module or me to know which of the files can be moved bottom. So you will on your own via testing and 'trial and error' determine .js position. Kind regards, Fred Link to comment Share on other sites More sharing options...
Recommended Posts