catalog/view/theme/journal2/common/header.twig
and modified the script to defer the js
Code: Select all
{% for script in scripts %}
{{- journal2.minifier.addScript(script, 'header', true, false) -}}
{% endfor %}
I also tried this:
{% for script in scripts %}
<script src= ....... syntax
{% endfor %}
but it didn't work. I really want to know from where all the different JS in the header is coming. Its reducing pagespeed score.