HH Services Limited Posted August 6, 2014 Share Posted August 6, 2014 Hello everybody, prestashop comes out of the box with many modules hooked in places that to me (please correct me if I am wrong) are hooked in way too many places, like: in this snapshot can be seen so many things on the header that then theyre not, I managed to already unhooked some modules without any changes in the front office what made me think why prestashop placed them there.. Do these unnecessary hooks take downloading speed? Why are they there? I hope someone can spread some knowledge here... 1 Link to comment Share on other sites More sharing options...
El Patron Posted August 6, 2014 Share Posted August 6, 2014 hooks are fundamental design of PrestaShop. typically modules will hook to header for two reasons 1) add .css files used by module at inti and 2) .js files for same reason. if you are not using default modules on your shop, you can simply disable or uninstall them. 1 Link to comment Share on other sites More sharing options...
Paulito Posted August 6, 2014 Share Posted August 6, 2014 Hello Good question, if any module is hooked to various positions how does the browser know not to show it, or is it shown only if content is added. This will be interesting to find out +1 for the question Anthony Paul 1 Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2014 Share Posted August 6, 2014 modules can be associated with many hooks, and fact, that hooks dont display contents means that these hooks cant affect page speed what hooks you unhooked and from what hooks? 1 Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 6, 2014 Author Share Posted August 6, 2014 Well, as you can see in the snapshots, I unhook several modules and the shop in question is working totally fine... so this is what made me wonder after realizing that they weren´t necessary... the site in question: www.goodpsychologists.com So...do these unnecessary hooks take downloading speed? Thank you everybody for sharing your knowledge.. Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 6, 2014 Author Share Posted August 6, 2014 Sorry Vekia, we reply at the same time.. I unhooked for example theme configurator from the footer, cms block from the header, and some more I can´t remember because I did this quite a while..I unhooked them and then checked the front office, some I had to re hook again, and some I hadn´t... Link to comment Share on other sites More sharing options...
Paulito Posted August 6, 2014 Share Posted August 6, 2014 Hello vekia I do not wish to be rude and highjack Anthony's topic but, what about the PayPal logo, this is hooked to a few places, does the browser go to the server every time you load a page with this logo on. If so, perhaps it would be good to be able to use the payment page for the logo to appear Paul Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2014 Share Posted August 6, 2014 if logo is stored in browser cache - browser will not load it again from server. moreover apache has got feature called mod_expires in simple words - it allows to define "cache" life time, it means, that if logo is cached with one year lifetime of "expiry" date browser will "download" logo after that time, until then browser will load it (logo) from own cache Link to comment Share on other sites More sharing options...
El Patron Posted August 6, 2014 Share Posted August 6, 2014 caution, just because you 'think' all is well, unless you check every facet of your front office (back office as well) then you may later encounter issue that you do not relate back to removing hook. then you spend countless time trying to resolve, some never resolve and give up the ship. if it's not broken then don't fix it. more importantly do NOT load modules/themes whose reputation is not stellar... believe me now, thank me later 2 Link to comment Share on other sites More sharing options...
Paulito Posted August 6, 2014 Share Posted August 6, 2014 Hello vekia and my apologies to Anthony as he is the owner of this topic but: In PS 1.6 their is Facebook in the footer and if you have a 1000 followers does the browser make 1000 requests to the server to show these images so extending the page load time. I, like many end users check how long it takes for their Index page to load, I recently found all the Facebook like images were slowing my site down by seconds not milliseconds as the browser had to look for each image. So, perhaps it's not good to use social networking sites on the Home page Paul 1 Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 6, 2014 Author Share Posted August 6, 2014 I do believe you El Patrón, next time I´ll be more conservative... Now really and seriously, after unhooking at least 6 modules from different places, the site is fine from any angle I can see and after sometime... so, I´m still puzzled as to why my site works fine.. Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2014 Share Posted August 6, 2014 Hello vekiaand my apologies to Anthony as he is the owner of this topic but: In PS 1.6 their is Facebook in the footer and if you have a 1000 followers does the browser make 1000 requests to the server to show these images so extending the page load time. note that facebook block with fans doesn't display all fans it displays only several of them there will not be 1000 requests, but usally several requests equal to number of "faces" displayed in the like box. It can affect website? well, it affects a little, as everything that is visible for customer eye on your website I do believe you El Patrón, next time I´ll be more conservative... Now really and seriously, after unhooking at least 6 modules from different places, the site is fine from any angle I can see and after sometime... so, I´m still puzzled as to why my site works fine.. what modules you unhooked? al of them from screens you attached? Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 6, 2014 Author Share Posted August 6, 2014 (edited) Hello vekia and my apologies to Anthony as he is the owner of this topic but: In PS 1.6 their is Facebook in the footer and if you have a 1000 followers does the browser make 1000 requests to the server to show these images so extending the page load time. I, like many end users check how long it takes for their Index page to load, I recently found all the Facebook like images were slowing my site down by seconds not milliseconds as the browser had to look for each image. So, perhaps it's not good to use social networking sites on the Home page Paul Good facebook´s module point Paulito.. Edited August 6, 2014 by Anthony DeLa Riviere (see edit history) Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 6, 2014 Author Share Posted August 6, 2014 (edited) Well thank you Paulito from bringing up an interesting point with facebook module, and thanks Vekia for sharing you knowledge with us. I unhooked theme configurator from footer, and cms from header to name something..I forgot the rest because it has been a while (prove that everything is fine after sometime..) By looking at the prestashop demo I can see soooooo many hooks that I wonder why its home page goes so fast... Some strange like cms in header..header has over 30 modules!!! Edited August 6, 2014 by Anthony DeLa Riviere (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2014 Share Posted August 6, 2014 in blockcms hook header adds css file that contains styles of block but don't worry, it's a part of old releases of prestashop and this hook is installed due to the "backward" compability, i think in ps 1.6 you can remove it. 1 Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 6, 2014 Author Share Posted August 6, 2014 Thank you Vekia... Would you say that if I suspect that a module is out of place and I unhook it, then test the front and back office and no changes occur, it is safe to say that the module was unnecesarily hooked in the unhooked place? Thank you onece again.. Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2014 Share Posted August 6, 2014 in this case (cms block module) - it works, but you have know that it will not work well always for other modules Fred (El Patron) already described whole process 1 Link to comment Share on other sites More sharing options...
HH Services Limited Posted August 7, 2014 Author Share Posted August 7, 2014 caution, just because you 'think' all is well, unless you check every facet of your front office (back office as well) then you may later encounter issue that you do not relate back to removing hook. then you spend countless time trying to resolve, some never resolve and give up the ship. if it's not broken then don't fix it. more importantly do NOT load modules/themes whose reputation is not stellar... believe me now, thank me later So, better don´t mess around too much unless it is needed.... Thank you Vekia, El Patrón and Paulito for sharing your knowledge and thoughts. Link to comment Share on other sites More sharing options...
Recommended Posts