Defer in javascript script tag

Post Reply
User avatar
rizqijune
Jr. Bludit
Posts: 6
Joined: Sat Dec 03, 2022 1:05 am
Location: Indonesia
Has thanked: 4 times
Been thanked: 1 time

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
Another Script Kiddie :geek:
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

As far as I know this is not possible:

https://docs.bludit.com/en/themes/javascript-files
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply