News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Add async javascript tag

Started by Bard00k, August 01, 2016, 10:58:49 PM

Previous topic - Next topic

Bard00k

There are simple functions in Document class to add JavaScript tag to pages:

$document->addScript("some-script-url");

or

$document->addScriptBottom("some-script-url");

But I see it add scripts as sync, eg without the 'async' attribute.
How can I add a JavaScript tag in AbanteCart with async attribute?

Thanks,

Forum Rules Code of conduct
AbanteCart.com 2010 -