How to reduce the impact of third-party code

Aasif007
Excursionist
14 0 5

When running a speed test on pagespeed Insights. In DIAGNOSTICS tap it's say reduce the impact of third-party code .

boom.PNG

This is the script : https://cdn.shopify.com/shopifycloud/boomerang/shopify-boomerang-1.0.0.min.js

I am little bit confused should I remove the this script or not because it's start from cdn.shopify is it really a third party code???? Can anyone please confrmed?



Replies 3 (3)

JumpingFox
Excursionist
20 0 4

shopify-boomerang-1.0.0.min.js is only 20kb and its from Shopify, do not attempt to remove it.

Vstar app is 200kb+ and other resources and large files

flareAI
Shopify Partner
2405 223 539

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

flareAI : Get Sales from Google Search, on Autopilot
$10+ billion in eCommerce on Google Search, every day. Find out how much you are missing
JMartocci
Excursionist
15 1 1

Hello, I'm experiencing a problem with the Boomerang script that's creating an additional <body tag. I'm seeking assistance on either stopping the code from loading or modifying it. Could you please advise where I can locate this code in the Shopify system, or do you have any other suggestions to resolve this issue? Thank you.