[Skip to main content](#vessel-content)

#   optimizing shodowbox.js

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

8 years 1 month ago [\#298082](#298082) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[optimizing shodowbox.js](/forum/31-development/895747-optimizing-shodowbox-js#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.")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- 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](https://cdn.hikashop.com/shadowbox/shadowbox.js) could save 24.3KiB (64% reduction).
Compressing [ cdn.hikashop.com/shadowbox/shadowbox.css](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NTc0Ny1vcHRpbWl6aW5nLXNob2Rvd2JveC1qcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 1 month ago [\#298084](#298084) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[optimizing shodowbox.js](/forum/31-development/895747-optimizing-shodowbox-js#298084 "-- 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.")*

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](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NTc0Ny1vcHRpbWl6aW5nLXNob2Rvd2JveC1qcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

8 years 1 month ago [\#298190](#298190) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[optimizing shodowbox.js](/forum/31-development/895747-optimizing-shodowbox-js#298190 "-- 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.")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NTc0Ny1vcHRpbWl6aW5nLXNob2Rvd2JveC1qcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
