javascipt gzip compression

  • Posts: 210
  • Thank you received: 4
5 years 8 months ago #296791

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

	<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
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?
	<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: 5 years 8 months ago by Bender.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 8 months ago #296792

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.

  • Posts: 210
  • Thank you received: 4
5 years 8 months ago #296804

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.058 seconds
Powered by Kunena Forum