Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Add async javascript tag  (Read 1328 times)

Offline Bard00k

  • Newbie
  • *
  • Posts: 5
  • Karma: +2/-0
    • View Profile
Add async javascript tag
« on: August 01, 2016, 10:58:49 PM »
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,

 

LoliPromDress.com Prom dresses 2018