How to clear unused code ?

Highlighted
Tourist
11 0 2

I found that after uninstalling the apps, the page will have a lot of unused code, affecting the speed of the page. Is there any apps that can clear all unused code of the website?

Highlighted
Shopify Expert
1380 112 211

Unfortunately, there is no app in Shopify that does this work of clearing out the code.

However, we can certainly help you in removing the unused code from uninstalled app if you can provide more details to it.

 

Looking forward to hearing from you.

 

Thanks & Regards,

Perennial Solution

Highlighted
Excursionist
11 0 4

i have the same problem causing major problem in my store. why are these apps not required to remove all there code when the app is deleted. people should be warned about this before adding any apps. is there any tool out there to identify the location of unused code. i can delete the code if i know what file its in and how to identify the code.

 
Remove unused CSS
 
2.2 s
 
Remove dead rules from stylesheets and defer the loading of CSS not used for above-the-fold content to reduce unnecessary bytes consumed by network activity. Learn more.
 
 Show 3rd-party resources (3)
                                                            
 
             URL                                      Size        Potential Savings
 
…admin/style-6eaaa8d….css
(cdn.shopify.com)                        195 KB     194 KB
                                                          
…assets/theme.scss.css?771
(cdn.shopify.com)                         17 KB     13 KB
                                                     
…assets/beans.css?771
(cdn.shopify.com)                       2 KB       2 KB
 
 
0 Likes
Highlighted
Shopify Expert
1380 112 211

Sorry but there are no tools available for identifying the unused code after deleting the app.

0 Likes
Highlighted
New Member
2 0 0

Can you help me out with this same problem?


@Qualitycheck wrote:

Unfortunately, there is no app in Shopify that does this work of clearing out the code.

However, we can certainly help you in removing the unused code from uninstalled app if you can provide more details to it.

 

Looking forward to hearing from you.

 

Thanks & Regards,

Perennial Solution


 

0 Likes
Highlighted
Shopify Partner
181 2 27

We went through the Shopify app review process about 2 months ago and Shopify takes this issue quite seriously now.

They ask that app developers have a way to automatically remove any inputted code on the store. For example, we have a button on our 'setup' page. It might be worth re-installing said apps, just to make sure they don't have an equivalent.

 

Cheers,

 

Oli

 

——————————

Founder @ www.preproduct.io

Test and make sales for future products

 

0 Likes
Highlighted
New Member
1 0 0

Hi, Can someone help me learn how to remove unused code? Unused JavaScript causes 2.7 sec delay on my website - I am sure it's caused from uninstalled apps. I ran speed test and after uninstalling some apps that I wanted to try but didn't like, it made my websit mobile speed score 34, when it was around 65. Thanks!

0 Likes
Highlighted
Shopify Partner
181 2 27

Hi @Foresterbags ,

 

If you open your store on Google Chrome and then hold control and click the page, then select 'inspect' from the box.

Then click on the 'Network' tab on the top of the newly opened side panel. You should be able to see a waterfall diagram of your pages load time, maybe list out any slowly loading items (before the red line) especially if they contain the name of prior apps.

 

Is it your product pages that are loading slowly? or the catalogue/collection pages? If you copy and paste the code into this thread, I'm happy to have a quick look at it and see if there's anything obvious we could take out.

 

Cheers,


Oli

 

——————————

Founder @ www.preproduct.io

Test and make sales for future products

 

0 Likes
Highlighted
New Member
1 0 0

These are a few codes under "warning"

A cookie associated with a cross-site resource at <URL> was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <URL> and <URL>.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at http://the-everything-pro-store.myshopify.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at https://the-everything-pro-store.myshopify.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at https://myshopify.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at http://myshopify.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at http://paypal.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at http://www.paypal.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at https://paypal.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at https://www.paypal.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at http://shopifycloud.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
?_sc=1&design_theme_id=80898490470&frame_token=galQS4V8mtiNZ8WO_4g5P2pIZ1IUtbR2A6WxFKRKvuvFqdXCfa7mYCIG-zQbxC-iAOczXixo0Q3zNEwskyeBux_Rwe6BBg6q-czzeL35wwUeZMp1eEkLR1EkrZ0yTxPaf6qDXv2F_X8Qdz7X19cfcg%3D%3D:1 A cookie associated with a cross-site resource at http://recovermycart.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
gagfe-TwdZx-h9xbMHKWe1TqHx.js?shop=the-everything-pro-store.myshopify.com:50 InCartUpsell library 2020-05-22 12:29:59 +0000 loaded

0 Likes