I'm working on a single page app, every time I click a link e.g., the event is stopped, and request to template.php
with the parameters of the link. (A link with href="www.site.com/login"
would request to template.php?path=login
)
But there is javascript in my login page, and currently it's added to the body in a script tag, but it's never executed.
Is there any way to execute asynchronously loaded javascript like in the example above?