hey all,
how can i avoid load https://www.paypalobjects.com/api/checkout.min.js at collection pages, i slow down the site speed.
i had tried to use this but it didnt work :
{% capture h_content %}
{{ content_for_header }}
{% endcapture %}
{% if template contains “collection” %}
{{ h_content | remove: “https://[www.paypalobjects.com](http://www.paypalobjects.com)/api/checkout.min.js”}}
{% else %}
{{ content_for_header }}
{% endif %}
Hi @yanFastSimon
This is Theodore from PageFly - Shopify Page Builder App.
For solving the problem about the Avoid Loading Https://Www.Paypalobjects.Com/Api/Checkout.Min.Js At Collections Pages, let’s try this solution:
Online Store ->Theme ->Edit code-> theme.liquid
{% unless template contains 'collection' %}
{% endunless %}
I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly