If you don’t want to merge scripts, it is recommended to Preload Scripts to preload key requests.
If you merged all scripts, even the first one can run, only when the full merged script was loaded. However if you enable Async Execute feature, Swift Performance will split the merged script on client side on the fly and run each scripts when that part was loaded. It can speed up rendering time which is an important factor for user experience. In rare cases Async Execute can break some scripts, so you should check is everything working well after activating it. However it is always recommended to enable this feature if it is possibe.
Delay Async Scripts
You can delay scripts one by one instead of delay all merged scripts with Lazyload Scripts feature
You can exclude files from merging/optimization one by one with Exclude Scripts option. You can use full or partial URLs/filenames here. It can be useful for example for ad or form scripts.
If you add any scripts here, they will be excluded from merging, but will be moved to the footer. Don’t use it for scripts which prints content where they was inserted (ad or form scripts).
You can also Exclude Inline Scripts or use Footer Inline Scripts if it is necessary. To exclude an inline script you need to add some unique string from its content.
Like footer scripts, Deferred Scripts option is an alternative exclusion. It will leave the script in its original place, but adds a
defer attribute to defer loading it.
Exclude Script Localizations
It is recommended to exclude script localization, because they can increase the merged script’s loading time, but there is no real benefit to including them.
It is always recommended to Minify scripts, also it is recommended to use Minify with API feature for better results.