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 Oct 16 '17 at 8:44
  • yes my code is after all below – Raghu Oct 16 '17 at 9:10
  • Can you post an image of the loaded scripts and mark the custom scripts you are using? – fja3omega Oct 17 '17 at 1:14
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 Oct 16 '17 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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