My site is loading too slowly and asking for location

My site is loading too slowly and asking for location

kumara
Visitor
2 0 0

Hi there, 

In addition to having a low score (which I know I should not worry too much about), my shop does visibly load slowly. I am not sure what to do. 

The site also asks the user to share their location each time someone visits the page. This is definitely hurting my conversion rates. Does anybody know how to get rid of this? 

My site is: www.kumarabeauty.com.

 

Thanks a lot for your help in advance. 

Replies 5 (5)

ElleBozz
Tourist
4 0 1

How strange. I have almost half of my sites running too slow, so yours was just no exception. Maybe you should try doing some site tooling upgrades?

JohnCodes
Shopify Partner
134 10 73

Hi @kumara 

I went through your website and tried to analyze the resources that are being loaded to see if I could find anything that stuck out.

Do you have any apps named Replay or something similar? It looks like this app alone is adding over 2 seconds to your loading time. It could also potentially be the reason your website is asking for location access.

Developer at SpeedBoostr (Shopify optimization and dev agency).
Try out our Shopify Analyzer (free performance analysis tool).
Check out Order Automator (app that auto tags + fulfills orders, and more automation)
More Apps: Theme Scientist (A/B testing tool), Tip Jar (add a tip button to your store), File Optimizer (optimize CSS, JS, Liquid)
kumara
Visitor
2 0 0

Thank you so much! I had a replay app. I deleted it but it still seems to be asking for location :(. 

oreoorbitz
Shopify Partner
261 31 134

The code that asks for a user's location is inside your theme.js file, it's not an app.

	StoreAvailability.prototype = Object.assign({}, StoreAvailability.prototype, {
		updateContent: function(variantId, productTitle) {
			var options = {
				maximumAge: 3600000, // 1 hour
				timeout: 5000
			};
			var self = this;
			// Not all browsers have geolocation API
			if (navigator.geolocation) {
				navigator.geolocation.getCurrentPosition(
					// success callback
					function(position) {
						self._useGeolocation(position, variantId, productTitle);
					},
					// failure callback
					function() {
						self._fetchStoreAvailabilities(variantId, productTitle);
					},
					options
				);
			} else {
				this._fetchStoreAvailabilities(variantId, productTitle);
			}
		}

 

 

I suggest you hire a developer to go through your theme's code and explain to you what the code is doing, and if you decide too, delete in a safe way that won't cause issues.

 

 

Available for pagespeed consulting
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949

PageFly-Victor
Shopify Partner
7865 1786 3131

Hi @kumara

It's PageFly - Shopify Page Builder App here and there's some notice I have when checking your site speed. Here's the results of your page speed checked on PageSpeed Insights: https://developers.google.com/speed/pagespeed/insights/?url=www.kumarabeauty.com&tab=mobile. The score on Desktop is 43, and on Mobile, it only scores 25 so here's some of my suggestions to improve your site. 

1. Delete any unused third party apps and unused theme codeThese are the 2 main sources that take up most of your store that eventually will affect the page speed. You can reach out to Shopify Support or developer to see what can be minimized or removed in your theme code. 

PageFly_0-1620032173511.png

 

2. Minify all of your image file size. You can use any image resize tool online to do this, this will not immensely affect your images but your site will be so much lighter. 

PageFly_1-1620032226119.png

3. You can try Lazy Loading as well to reduce loading time all at once. PageFly do offer this feature as default when building page.