0

I Checked my website in the gtmetrix and i got one of the following suggestion

This page has 95 external Javascript scripts. Try combining them into one.

This page has 6 external stylesheets. Try combining them into one.

enter image description here

How can i solve this.I had google lot but still not got success.

  • the problem that you have magento 2.2. , you can ignore gtmetrix issues. – MagenX Mar 6 at 9:47
  • @MagenX yes you are right but i need to solve this issue – Jaydip Patel Mar 6 at 11:53
  • this is not a problem – MagenX Mar 6 at 12:08
  • @MagenX this problem is solved in magento1 website but client is need to solve this issue in M2 also :) – Jaydip Patel Mar 6 at 12:13
0

I think combine the all javascript and css file hope this answer may ne help you

Javascript files are very often found in several external files. There is not always a need to have these files be separate as most javascript can be combined into one file and not affect the ways it functions.

Collecting all javascript files into one will really reduce the amount of time it takes to load your web pages because you are reducing the amount of things the web browser has to request before displaying your page.

And refer this links :-

https://mirasvit.com/knowledge-base/how-to-combine-javascript-files-in-magento-2.html

And Please check stylesheets issues :-

https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/css-overview.html#css-merging-minification-and-performance

|improve this answer|||||
  • Thanks for answer here but in my website css and js merge and minify both still 0 showing http request – Jaydip Patel Mar 5 at 13:50
  • you refer the both links ?? – Mohit Patel Mar 5 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.