There are a plethora of techniques that are often used to defer parsing; however, the simple and preferred technique is to simply Defer loading of jаvascript until it is needed.
Demo: https://gabelivan.com/items/wp-asset-cleanup-pro/Smart Cleanup Tools is an easy to use, powerful plugin for database cleanup with total of 38 cleanup, reset and removal tools.
Demo: https://codecanyon.net/item/smart-cleanup-tools/3714047