logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
ray22901031  
#1 Posted : Friday, December 3, 2021 10:33:39 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Hello support,

We are trying to set a default picture height and width to the following. Please see the enclosed picture. Google dislikes pictures being loaded without this information, we are trying to up our mobile score on Google's PageSpeed Insight and are trying to reduce our Cumulative Layout Shift (CLS).

We have already improved our desktop score from 68 to 95.

I'm not sure where in Ablecommerce I need to go to do this. I'm pretty sure it's a view somewhere, but I'm just not sure.

Many thanks,
-Ray

ImageBox.jpg (384kb) downloaded 12 time(s).

Edited by user Friday, December 3, 2021 10:38:38 AM(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Friday, December 3, 2021 11:16:32 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Hi Ray,

Please find the following line of code in the file \Website\Views\Shared\_ProductItemDisplay.cshtml

Quote:
@if (ShowImage)
{
<img src="@Url.Content(imageUrl)" class="img-responsive product-img-center" alt="@imageAltText" />
}
Lyonsperf  
#3 Posted : Monday, December 6, 2021 1:43:38 PM(UTC)
Lyonsperf

Rank: Member

Groups: Registered, HelpDesk
Joined: 9/29/2021(UTC)
Posts: 17

WHere are you finding the pagespeed tools?
ray22901031  
#4 Posted : Monday, December 6, 2021 2:59:16 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
I'm not sure about the scope of your question, but I'm referring here to the Google insight tools available at https://pagespeed.web.dev

I hope this helps,
-Ray
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.