[Solved] Reduce the Impact of third-party code. [100% Working Solutions ]
Reduce the impact of third-party code. Third-party code can significantly impact load performance. Limit the number of redundant third-party providers and try to load third-party code after your page has primarily finished loading.
Ways to reduce the impact of third-party code as suggested by PageSpeed Insights:
Minimize third-party code: Only use third-party code that is essential for your website's functionality. Remove any unused or duplicated scripts.
Load scripts asynchronously: Load third-party scripts asynchronously so that they do not block the rendering of your website. Use the 'async' and 'defer' attributes for script tags.
Use Content Delivery Networks (CDN): Host third-party scripts on a CDN so that they can be cached and loaded faster. CDNs also distribute the content across multiple servers, reducing the load on your website's server.
Optimize third-party scripts: If possible, optimize third-party scripts by minifying them to reduce their file size. Remove any unnecessary code or comments.
Delay loading non-essential scripts: Load non-essential third-party scripts after the rendering of your website. Use lazy loading techniques where possible.
Remove Unnecessary Apps and Apps code
After uninstalling the app from the store, make sure all the snippets should also
be removed from the store
Don't use the app for basic functionalities that can be easily achievable by
theme customisation[like announcement bar/ filters / mega-menu etc]