Page 1 of 1

Defer in javascript script tag

Posted: Fri Jan 12, 2024 11:49 am
by rizqijune
Hi, is there a way to defer a script tag with <?php echo Theme::js('https://blablabla.com/cdn.min.js', false) ?> ?

Inserting manually is working but is there any function of Theme::js to add a defer? maybe something like <? echo Theme::js('https://this.is/ajsfile.js', false, defer, or async) ?>

Bludit 3.15.0 - Fresh Install
Theme : My Custom Theme
Plugins : Default starter plugin

Re: Defer in javascript script tag

Posted: Sun Jan 21, 2024 10:36 pm
by Edi
As far as I know this is not possible:

https://docs.bludit.com/en/themes/javascript-files