LABjs blocking the executation of jquery each()
carolmoises opened this issue · 0 comments
Hello,
I want to report an issue. I got a jquery script that uses each() which iterates with JSON files. The error is very generic:
TypeError: $.each is not a function
Test Cases:
1 - When debugging (F12) it works fines, it seems something is blocking or causing a delay when running.
2 - All JS included were commented in this page and we noticed that it works fine without the LABjs.
3 - I tried to move the code from the page to a JS file and just includes the .JS in the page but neither alternatives worked.
4 - I noticed that I need LABjs because there are many of JS scripts in the code and its execution need to be coordinated in the right order.
5 - The script to load cities as the state selected works fine in another page with one javascript.
Is there any option or any way recommended to structure or configure the code to resolve this problem?
Thanks.
Carol