How to reduce the impact of third-party code

Hello @Aasif007 ,

This is Gina from flareAI app helping Shopify merchants get $5Million+ in sales from Google Search, on autopilot.

The script you mentioned (https://cdn.shopify.com/shopifycloud/boomerang/shopify-boomerang-1.0.0.min.js) is part of Shopify’s Boomerang library, which is a third-party script that helps with measuring website performance and user behavior.

Although it’s not necessarily harmful, it can contribute to slower page load times if it’s not optimized or used excessively. Therefore, it’s recommended to review your website’s use of third-party scripts and determine which ones are essential and which ones can be removed.

To optimize the Boomerang script, you can consider the following.

  1. Defer or async loading
    You can defer or async loading of the script to prevent it from blocking other resources from loading.

  2. Minify and compress
    You can minify and compress the script to reduce its size.

  3. Limit its usage
    Limit the usage of the script to pages where it’s necessary.

By optimizing the use of the Boomerang script and other third-party scripts, you can help to reduce their impact on your website’s speed and improve your website’s performance.

Gina