optimizing shodowbox.js

  • Posts: 634
  • Thank you received: 16
  • Hikashop Business
5 years 6 months ago #298082

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8
-- PHP version -- : 7.1

We are in the process of optimizing our site and we are given this message from GTmetrix

Enable compression for the following resources to reduce their transfer size by 30.1KiB (66% reduction).

Compressing cdn.hikashop.com/shadowbox/shadowbox.js could save 24.3KiB (64% reduction).
Compressing cdn.hikashop.com/shadowbox/shadowbox.css could save 1.3KiB (64% reduction).



First: we are using Magictoolbox Thumb Plus tho show pictures so we are not sure it is necessary that shadowbox.js gets loaded. Is still needed? If not, how to get rid of it?

Second: If the download of this elements are necessary and are taken froma cdn.hikashop... how can we change the source? or even better, why is your CDN not delivering this source already zipped?


Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 6 months ago #298084

Hi,

If you have Magictoolbox, you probably don't need it. You can turn it off in the "image popup mode" setting of the Hikashop configuration.

Also, in that setting, if you select "shadowbox (embedded)", then HikaShop won't load the javascript and CSS of shadowbox from our CDN but will suppose that you have it included in your template (or by other means, like a module or a plugin).
Then, you're free to compress it anyway you want on your website.

The following user(s) said Thank You: PeterChain

Please Log in or Create an account to join the conversation.

  • Posts: 634
  • Thank you received: 16
  • Hikashop Business
5 years 6 months ago #298190

Thanks for your clear explanation. We just turned off the "image popup mode" and the library is not loading anymore.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum