Skip to main content

javascipt gzip compression

More
8 years 1 month ago - 8 years 1 month ago #296791 by Bender
Hi,
there are 2 lines includes javascipt code on each page on site also
Code:
<script src="/media/com_hikashop/js/hikashop.js?v=351" type="text/javascript"></script> <script src="/plugins/hikashop/cartnotify/media/notify.min.js" type="text/javascript"></script>
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:
<script src="/media/com_hikashop/js/hikashop.js?v=351" type="application/javascript"></script> <script src="/plugins/hikashop/cartnotify/media/notify.min.js" type="application/javascript"></script>

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 1 month ago by Bender.

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

More
8 years 1 month ago #296792 by Jerome
Replied by Jerome on topic javascipt gzip compression
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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
8 years 1 month ago #296804 by Bender
Replied by Bender on topic javascipt gzip compression
that means bug of template, ok thanks a lot

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

Time to create page: 0.220 seconds
Powered by Kunena Forum