Author Topic: Add async javascript tag  (Read 4166 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,

 

Powered by SMFPacks Social Login Mod