- Posts: 640
- Thank you received: 16
optimizing shodowbox.js
- PeterChain
-
Topic Author
- Offline
Less
More
8 years 1 week ago #298082
by PeterChain
optimizing shodowbox.js was created by PeterChain
-- 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.
-- 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.
8 years 1 week ago #298084
by nicolas
Replied by nicolas on topic optimizing shodowbox.js
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.
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.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
8 years 1 week ago #298190
by PeterChain
Replied by PeterChain on topic optimizing shodowbox.js
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.190 seconds