I got the following script loaded in the head:

<script src="https://selfservice.robinhq.com/external/robin/XXXX.js" async="async"></script>

What is the correct way (syntax) to remove it on every category page (syntax in the local.xml)?

<reference name="content"> 
    (remove method..........)

Magento version

  • is it 3rd party javascript? Feb 23, 2018 at 16:09
  • Yes, it is; so it's loaded externally Feb 23, 2018 at 16:12
  • from where its loading? I mean which file ? from somewhere its calling into Magento Feb 23, 2018 at 16:17

1 Answer 1


try below code for Magento 2.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <remove src="https://selfservice.robinhq.com/external/robin/XXXX.js"/>


  • Hi; Thank you for the answer; I want to keep it in the head and only removed in every category page :) Feb 23, 2018 at 16:26
  • Then you should put this code in catalog_category_view XML file Feb 23, 2018 at 16:27
  • OP was asking about 1.14 Feb 24, 2018 at 2:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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