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

#   javascipt gzip compression

##

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

8 years 2 months ago -  8 years 2 months ago [\#296791](#296791) by [Bender](/forum/user/38688-bender "View Bender's Profile")  *[javascipt gzip compression](/forum/31-development/895512-javascipt-gzip-compression#296791 "Hi, there are 2 lines includes javascipt code on each page on site also  also in media/com&#95;hikashop/js/hikashop.js on line 305  We should to replace text/javascipt to application/javascipt because text/javascipt is obsolete. So gzip on nxinx doesnt compress it because mime.types not defined if you will try to define it and include both lines in mime types conf like  you will get an warning in nginx status - not recomended  So explain please where to find file(s) what generate this code to replace text to application?  also as for pagespeed inside recomendation - how to move this code from head to body tag - is it possible ?  also i think you should to include this patch in future version of hikashop.  And the second question it is about bootstrap - may i ask in this subject ? Does Hikashop 351 version use bootstrap 3 in own code ? Will future version of Hikashop support bootstrap 4 ?")* was created by *[Bender](/forum/user/38688-bender "View Bender's Profile")*

Hi,
there are 2 lines includes javascipt code on each page on site also Code:

&lt;script src="/media/com_hikashop/js/hikashop.js?v=351" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/plugins/hikashop/cartnotify/media/notify.min.js" type="text/javascript"&gt;&lt;/script&gt;

also in media/com_hikashop/js/hikashop.js on line 305

We should to replace text/javascipt to application/javascipt because text/javascipt is obsolete.
So gzip on nxinx doesnt compress it because mime.types not defined
if you will try to define it and include both lines in mime types conf like
Code:

text/javascript js; application/javascript js;

you will get an warning in nginx status - not recomended

So explain please where to find file(s) what generate this code to replace text to application? Code:

&lt;script src="/media/com_hikashop/js/hikashop.js?v=351" type="application/javascript"&gt;&lt;/script&gt; &lt;script src="/plugins/hikashop/cartnotify/media/notify.min.js" type="application/javascript"&gt;&lt;/script&gt;

also as for pagespeed inside recomendation - how to move this code from head to body tag - is it possible ?

also i think you should to include this patch in future version of hikashop.

And the second question it is about bootstrap - may i ask in this subject ?
Does Hikashop 351 version use bootstrap 3 in own code ?
Will future version of Hikashop support bootstrap 4 ?

Last edit: 8 years 2 months ago by [Bender](/forum/user/38688-bender "View Bender's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 2 months ago [\#296792](#296792) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[javascipt gzip compression](/forum/31-development/895512-javascipt-gzip-compression#296792 "Hi, there are 2 lines includes javascipt code on each page on site also  also in media/com&#95;hikashop/js/hikashop.js on line 305  We should to replace text/javascipt to application/javascipt because text/javascipt is obsolete. So gzip on nxinx doesnt compress it because mime.types not defined if you will try to define it and include both lines in mime types conf like  you will get an warning in nginx status - not recomended  So explain please where to find file(s) what generate this code to replace text to application?  also as for pagespeed inside recomendation - how to move this code from head to body tag - is it possible ?  also i think you should to include this patch in future version of hikashop.  And the second question it is about bootstrap - may i ask in this subject ? Does Hikashop 351 version use bootstrap 3 in own code ? Will future version of Hikashop support bootstrap 4 ?")*

Hello,

It is not HikaShop which set that "text/javascript" for its inclusions ; HikaShop is using the Joomla core and ask for the inclusion of the JS file.
So you should see that with the Joomla core and potentially, your template.

Regarding the responsive grid layout system, it is currently based on a modified version of Bootstrap 3 and we do have precise plan for any migration for the moment.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

8 years 2 months ago [\#296804](#296804) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[javascipt gzip compression](/forum/31-development/895512-javascipt-gzip-compression#296804 "Hi, there are 2 lines includes javascipt code on each page on site also  also in media/com&#95;hikashop/js/hikashop.js on line 305  We should to replace text/javascipt to application/javascipt because text/javascipt is obsolete. So gzip on nxinx doesnt compress it because mime.types not defined if you will try to define it and include both lines in mime types conf like  you will get an warning in nginx status - not recomended  So explain please where to find file(s) what generate this code to replace text to application?  also as for pagespeed inside recomendation - how to move this code from head to body tag - is it possible ?  also i think you should to include this patch in future version of hikashop.  And the second question it is about bootstrap - may i ask in this subject ? Does Hikashop 351 version use bootstrap 3 in own code ? Will future version of Hikashop support bootstrap 4 ?")*

that means bug of template, ok thanks a lot

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NTUxMi1qYXZhc2NpcHQtZ3ppcC1jb21wcmVzc2lvbj90bXBsPW1hcmtkb3du) 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.070 seconds

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