[Answer]-ReferenceError: <Function> is not defined

1👍

Since you’re already using JQuery, and have some code in your page depending on an external component, I’d really wrap that inside a $(document).ready(function() { ... });, just to make sure that everything is nice and dandy before executing instructions.

A different option would be putting that code in the same components.js script, but I don’t know if that would be feasible for your case.

👤mccc

Leave a comment