QUESTION:


We have upgraded the NextEnd Smart Slider extension and now our score on GTMetrix is not 100% anymore.


ANSWER


Nextend2_Nextend2 module adds javascript over head tag

Please follow below steps to fix the issue:

+ add before closing tag of html

/public_html/app/code/community/Nextend2/Nextend2/Model/Observer.php

+ backup:

/public_html/app/code/community/Nextend2/Nextend2/Model/Observer.php__

+ edit line26

$response->setBody(preg_replace('/<\/head>/', $head . '</head>', $response->getBody(), 1));

to

$response->setBody(preg_replace('/<\/html>/', $head . '</html>', $response->getBody(), 1));


If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 1 Extensions: https://bsscommerce.com/extensions.html