0

In header we have code like this in separate scripts

var $ck = jQuery.noConflict();
var $abc = jQuery.noConflict();
var $frr = jQuery.noConflict();

The requirement is working but I have observed in the console

ReferenceError: jQuery is not defined
ReferenceError: decorateList is not defined
ReferenceError: Varien is not defined

Please find the below image

enter image description here

can anyone help me on this issue.

thanks

3
  • Have you tried loading your script after all the other scripts have loaded?
    – fja3omega
    Commented Oct 16, 2017 at 8:44
  • yes my code is after all below
    – Raghu
    Commented Oct 16, 2017 at 9:10
  • Can you post an image of the loaded scripts and mark the custom scripts you are using?
    – fja3omega
    Commented Oct 17, 2017 at 1:14

1 Answer 1

0

You are loading your custom scripts before the jQuery and Varien Library loads. So only you are facing that issue. Initiate your custom scripts in the body after the header loads. Then I think it will works as expected.

1
  • we have header related divs in the script. so if we move the script to body i think script will not work
    – Raghu
    Commented Oct 16, 2017 at 7:22

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.