Defer in javascript script tag
- 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
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 :geek:](./images/smilies/icon_e_geek.gif)
![Geek :geek:](./images/smilies/icon_e_geek.gif)