Home > @lynx-js/rspeedy > Output > inlineScripts
Output.inlineScripts property
The Output.inlineScripts option controls whether to inline scripts into Lynx bundle (.lynx.bundle).
Signature:
Default Value
Rspeedy defaults this to true and only switches it to false when the user explicitly sets performance.chunkSplit.strategy to a value other than 'all-in-one'.
Remarks
This is different with output.inlineScripts since we normally want to inline scripts in Lynx bundle (.lynx.bundle).
There are two points that need to be especially noted:
-
Only background thread scripts can remain non-inlined, whereas the main thread script is always inlined.
-
Currently, when
experimental_isLazyBundleis enabled,inlineScriptswill always betrue.
Example
Disable inlining background thread scripts.

