Rhobur Posted January 9, 2014 Share Posted January 9, 2014 (edited) Hi, Does anyone know which file is calling the oauth.googleusercontent.com/gadgets/js/core:rpc:shindig.random:shindig.sha1.js and the jquery-1.7.2.min.js files? I'd like to test defer loading but cannot find which file is calling them? Regards, Edited January 9, 2014 by Rho_bur (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted January 9, 2014 Share Posted January 9, 2014 Not sure about shindig, that must be coming from a module. Jquery path is defined in the Media class in the function getJqueryPath() Looking at that function it seems that if you delete the file from your server, Prestashop will automatically try to get it from ajax.googleapis.com 1 Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2014 Share Posted January 9, 2014 jquery is a default library for prestashop and it's defined in frontcontroller, google library is probably a part of external (non-default) module related to google+ that you use. it can be also loaded from some browser plugin that you use. 1 Link to comment Share on other sites More sharing options...
Rhobur Posted January 10, 2014 Author Share Posted January 10, 2014 (edited) Thanks Vekia and Tomerg! the jquery has 120 k and the other 53k so I'm thinking of using minify to defer loading. Do you think that deferring them could lead to problems? I am certainly not the first one to take that into consideration. Edited January 10, 2014 by Rho_bur (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted January 10, 2014 Author Share Posted January 10, 2014 (edited) Not sure about shindig, that must be coming from a module. Jquery path is defined in the Media class in the function getJqueryPath() Looking at that function it seems that if you delete the file from your server, Prestashop will automatically try to get it from ajax.googleapis.com I don't want to delete it just to defer its loading using the minify library. But if PS is loading it from local instead of calling it with the <script> tag it might not work. Edited January 10, 2014 by Rho_bur (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted March 17, 2014 Share Posted March 17, 2014 I don't want to delete it just to defer its loading using the minify library. But if PS is loading it from local instead of calling it with the <script> tag it might not work. I think you will very interested in this moudle: http://www.prestashop.com/forums/topic/314461-module-prestashop-javapro-remove-page-render-blocking-javascripts/ you can load specific which java is loaded at the bottom with optional advanced html attributes defer or async. (when not using optional ccc bottom java). Link to comment Share on other sites More sharing options...
El Patron Posted December 21, 2022 Share Posted December 21, 2022 This module allows assignment of attributes defer/async and load position top bottom 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