You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Marko and Lasso with Lasso's prebuild feature. Prebuilding has been working great for me, but I am now wanting to add async or defer to my script tags inserted by lasso-body. When running my application without loading from prebuild, it correctly adds the async or defer attributes. When loading from prebuild, they are not present. Maybe I don't understand how prebuild works? Or maybe it's a bug?
I am using Marko and Lasso with Lasso's prebuild feature. Prebuilding has been working great for me, but I am now wanting to add async or defer to my script tags inserted by lasso-body. When running my application without loading from prebuild, it correctly adds the async or defer attributes. When loading from prebuild, they are not present. Maybe I don't understand how prebuild works? Or maybe it's a bug?
My Lasso config:
My prebuild file that I run with
npm run prebuild
:My lasso-body tag:
lasso-body external-script-attrs={async: true, defer: true}
With
loadPrebuild
set tofalse
in my lasso config, my script appears as follows in the chrome inspector:<script src="/static/main-layout-309aa286.js" async defer></script>
With
loadPrebuild
set totrue
, the script does not have async or defer:<script src="/static/main-layout-cb35b27f.js"></script>
Is there a way to have the attributes when using prebuild?
The text was updated successfully, but these errors were encountered: