You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JasonOffutt edited this page Apr 30, 2013
·
6 revisions
Adding JS files to the page
If you're developing a block, and you need to register a JavaScript on the page in a way that will ensure that it does not get added more than once, there are a couple different ways to do it. We've exposed a method call on the CurrentPage object that will allow you to register your external JS file without worrying about collisions.