Block js loading
Permalink
Hi,
I want to add custom js on page view.
i have a js file in the js folder and i want to initiate a js var to be used in this file.
the problem is that this script is loaded after js file.
Thanks.
I want to add custom js on page view.
i have a js file in the js folder and i want to initiate a js var to be used in this file.
public function on_page_view(){ $html = Loader::helper('html'); $this->addHeaderItem($html->script('var SOME = "' .Loader::helper('concrete/urls')->getToolsURL('mytools', 'mypack') .'";' )); }
the problem is that this script is loaded after js file.
Thanks.