Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Page speed optimization

         

SEO Learner 04

2:18 pm on Apr 26, 2024 (gmt 0)

Top Contributors Of The Month



I am wordpress cms user(as most of the clients come up with this cms) and doing speed optimization mostly for the homepage. I can't go up to 50% score of page speed insights from 20% or 30% for the mobile devices. I have tried many effective plugins like Autoptimize, wp-optimize, jetpack, and many more..but can't make it up to 70% doing all(minifying js,CSS,HTML, ; defering js code , swaping google font to default device font)..

Do you have any better suggestions for best results... any recommendation for plugin...

not2easy

2:46 pm on Apr 26, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Have you considered optimizing your images? Images slow down page rendering more than css and js elements. Plugins can't optimize more than the image specifications require, but you can optimize your images before uploading to fit the size and resolution required. You could show mobile visitors a different set of images. No plugins required.

aristotle

6:32 pm on Apr 26, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I agree with not2easy.

There's a very old program called Irfanview that I've used for many years. It's still around and is a free download at [irfanview.com...]

Irfanview is very simple to learn and very easy to use. Years ago I did some testing and found that you can often greatly reduce the size of an image, even by a factor of 5 or more, with hardly any effect on it's visual appearance on a computer screen.

Remember that the resolution of the screen itself can limit the visual quality of an image that has a higher resolution. Also, always convert bmp images to a format like jpg or gif. I know that there are more modern formats but on my sites I mostly still use jpg and gif images that I created years ago. (Gif is best for black and white images)

Kendo

10:48 pm on Apr 28, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try removing Google Analytics and all the plugins that you have been lead to believe increase site performance. And if that doesn't work change the theme.

lucy24

12:23 am on Apr 29, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's a very old program called Irfanview
Or, if you’re on a Mac, Graphic Converter. It has expanded over the years, but its original purpose was, as the name suggests, to change images to a different format. Just swapping among jpg/gif/png can make a huge difference.

Kendo

1:49 am on Apr 29, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just swapping among jpg/gif/png can make a huge difference.

Yes, PNG have largest filesize while JPG and GIF can be much smaller.

Resolution can be a killer because photos taken fby mobile phones and digital cameras can be 300dpi or more, while anything displayed at more than 96 dpi on a web browser is a waste.

Personally I prefer Photoshop because it allows me to save at 80% quality which reduces file size dramatically with no significant loss of quality when view on a web page. I also get to choose the DPI.

not2easy

3:18 am on Apr 29, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you want to keep the same image format and you're on a Mac there is also Image Optim to downsize images to lossless or lossy levels.

lucy24

5:07 am on Apr 29, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I also get to choose the DPI.
Not that that's relevant for anything going on a webpage, since then only the pixel count is used. DPI only matters if you're printing.

But, yes, I can't think of anything website-specific where a jpg would need to be at the full 100%.

SEO Learner 04

6:51 am on Apr 29, 2024 (gmt 0)

Top Contributors Of The Month



okay..i do also use compressed images...But if this is so, then why in a Shopify website where the FCP and LCP is a video..the LCP score is 1.24 sec..and it doesn't affect overall web vital score of page speed. Moreover there are more lcps on that page and paint layout shifts as well. And the performance is 70% without any app or plugin.

Kendo

12:20 pm on Apr 29, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Not that that's relevant for anything going on a webpage

Most computer screens display at resolutions of 72-96 dpi so images of a higher resolution are a waste of resources, especially when considering that an image of 300 dpi can be 400% larger in file size than if it was 96 dpi.

lucy24

4:39 pm on Apr 29, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My point was that it isn't the DPI/PPI as such, it’s the number of pixels. What the browser sees is, say, 800 x 800 pixels; it simply doesn't matter what that translates to in print.

Besides, these days a “pixel” is a unit of measurement, not a physical dot on the screen.

Kendo

6:26 am on Apr 30, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



these days a “pixel” is a unit of measurement, not a physical dot on the screen

Nothing has changed.

There is no halftone involved so it is not about "dots". 96 dpi is actually 96 pixels per inch.

lucy24

4:51 pm on Apr 30, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



:: sigh ::

I give up.

NeapTide

7:03 pm on Apr 30, 2024 (gmt 0)

5+ Year Member Top Contributors Of The Month



Generate proper critical above the fold css and put that in autoptimize "inline above the fold css"

Use sitelocity (dot) com or jonassebastianohlsson (dot) com/criticalpathcssgenerator/
to generate critical above the fold css.

This should fix your LCP issue.

If CLS is high too make static placeholders with white or transparent backgrounds that will load before images thus reduce cumulative layout shift. Use Lite speed cache plugin for that. It has built in caching, js, css and media management features. You can use autoptimize and lite speed cache plugin together without any issue.

Also ignore pagespeed general scores. Your pages should just pass CLS and LCP.

INP is another core web vital that even google. com is failing.

So google needs to fire some more people implementing idiotic policies that even their own products do not comply with

Kendo

9:06 pm on Apr 30, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't think that any sort of evaluation by Google can be considered reliable because I am seeing failures almost every second day.

If they are not bouncing my mail due to a lack of SPF record when one does exist, they are sending notices about 404s for pages that never existed.

I used to action those reports but now I just delete them and enjoy my day.

SEO Learner 04

6:54 am on May 1, 2024 (gmt 0)

Top Contributors Of The Month



[NeapTide] Your answer seems to be relevant and good. However, simultaneously using two plugins for the same purpose can override the changes. But the client requires the result in pagespeed(so what should be done for that)....Even the result of pagespeed varies on checking twice..the same page.
Yeah I have heard about INP on few blogs, it is called interaction to the next paint.. But I think this metric is not yet added in the core web vitals..

Micha

8:00 am on May 1, 2024 (gmt 0)

WebmasterWorld Senior Member Top Contributors Of The Month



@SEO Lernende 04 Which theme do you use? I would be happy to take a look at it on my test system. 2nd question: Are you hosting on your own server or is it a normal hosting space? (If you have your own server, you can do a lot on the server side, which is helpful)

From my experience, I can say that all those plugins like "Autoptimize" are more of a hindrance. I use W3 Total Cache, which is pretty powerful, but once it's set up properly, it helps a lot.

As for images: I would advise you to use WebP.

SEO Learner 04

8:58 am on May 1, 2024 (gmt 0)

Top Contributors Of The Month



[Micha] it is Astra theme, and the hosting is on normal hosting space hostinger..well I have to test it then..

superclown2

12:00 pm on May 1, 2024 (gmt 0)



90%+ of the coding in WP is bloatware which is why they load so slowly. Learn CSS HTML5 and Javascript (there are tons of free resources online) and hand code the template, and you'll be amazed at the speed difference; plus you'll avoid all the security vulnerabilities (past, present and future) associated with WP. Use img srcset to display the correct size image to match the screen size.

Sure it means a few weeks of study but what a difference it will make. Plus you'll have a unique selling point to impress your clients with. Who wants a site that may well be hacked eventually?

Frankly I find hand coding, once you have a grip of it, is much faster than designing a site using WP anyway.

Micha

1:03 pm on May 1, 2024 (gmt 0)

WebmasterWorld Senior Member Top Contributors Of The Month



@SEO Learner 04 the Astra theme is very overloaded, I would actually advise you to use a different one and I agree with superclown. I'm testing this out, but I have to honestly say that adding a cache and switching to WebP will probably help the most.

not2easy

1:09 pm on May 1, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Yeah I have heard about INP on few blogs, it is called interaction to the next paint.. But I think this metric is not yet added in the core web vitals..
INP is part of the CWV now, it was implemented when INP replaced First Input Delay on March 12: [webmasterworld.com...]

mhansen

3:30 pm on May 1, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm a devoted Astra Pro user as well as an avid Tech SEO/CWV optimizer since it's one of those things that I control and it only takes a couple hours to achieve near perfection. Here is how I optimize for speed.

My stack is:

- Managed hosting. (Not the most popular "engine" one that is often used - I find it too restrictive.)
- Child theme
- Astra Pro
- No page builders (Elementor, etc)
- WP-Rocket cache.
- TinyPNG, optimizing all images and converting all images to WebP (I'm old-school, and use a 15 year old version of Macromedia Fireworks to optimize before uploading as well)
- CloudFlare.
- 14-15 other plugins used for forms (set to load css/js ONLY on pages where used), etc.

All testing is done at: [pagespeed.web.dev...]
All CLS (IMO, the most important metric) diagnoses is done at: [webvitals.dev...] which shows you EXACTLY which containers are causing the layout shift in a visual way.


1 - ALWAYS test pagespeed in a browser that you are not logged in to your WordPress backend. Always load your test page(s) (mentioned next) into the same, non-logged in browser you plan to test CWV BEFORE you test. This assures the page creates a cached version and the cached version will be tested.

2 - Start by setting a baseline for the theme/stack. This usually eliminates the need to do much more, except in cases where the individual content pages have a lot of images to optimize, form pages, etc. Create a BLANK page and BLANK post, set them to no index, remove any sidebars, footer, etc. On these two blank URL's, you want nothing but the header to load, since it is generally going to affect 100% of your pages and have the highest impact on performance.

3 - I preload my fonts and logo image by editing the header.php in my child theme. I also instruct WP-Rocket to ignore lazy loading of the logo. I preload before the GA4/GTM script, and directly beneath the < head > tag.

I may spend 2-3 hours on these blank pages alone, getting the score as close to 100% as possible. In general, GA4 and GTM are the only two things that slow the site down when I am done in here. On my site, I have achieved a 98 CWV score on the blank pages, which means I can forget about it (for now) and move on.

4 - Add the footer to the page, rinse and repeat all testing. Once you're done with the header AND the footer, if you plan to add a sidebar to the page/posts do that now and rinse and repeat your testing. When I add the footer to the page, I'll add a <div> to the content area that is 700 pixels high, this means the blank div will show in the viewport and footer will not interfere with LCP.

The goal is this is to figure out where your hurdles are and clean up without getting too distracted by the 30 other onpage factors that come from the content being there. Once you have gone as far as you can, set these two pages back to "draft" but keep them as anytime you see speed slowing, this is where you return first.

Note: After every change, you must flush the cache and if you use CloudFlare, you must purge the site. Otherwise, testing tools will just show your previously cached version.

Optimize these first!

Once you get to the point you are ready to optimize the content on each page, it's MUCH easier to focus on that alone.

Tips - While I use a "featured image" on posts and pages, I disable it in the Astra page setting and place the featured image manually after the first paragraph so it does not load into the view port on mobile devices.

Here is a screenshot of my home page [imgur.com], which is very heavy in images, text, a form and several other onscreen elements. Total page size is 799kb before compression, 370kb after.

Yes, it takes patience and work, but it can be done.

FWIW, the site was still affected by HCU.

Edit to change tonypng to tinypng.

manu14

5:45 am on May 3, 2024 (gmt 0)

5+ Year Member Top Contributors Of The Month



Thank you

SEO Learner 04

10:08 am on May 21, 2024 (gmt 0)

Top Contributors Of The Month



@not2easy and other experts, I have checked cwv of very big brands like Harrods, and their score is less than 50. But they still performing very well in SERP, so my question is that all of these guidelines are for us(weak presence brands), why not for the Big Brands.

Rlilly

12:47 pm on May 22, 2024 (gmt 0)

10+ Year Member Top Contributors Of The Month



Fact is I am seeing many sites with dismal core values failing almost everything coming up very high in the SERPS.. some dominating.
If you a big brand and your site has the worst performance. Google will make sure you do well. However if you a small business, your site will be penalized for low performance.. Google is biased..nothing fair about it

Eva1995

5:37 pm on May 23, 2024 (gmt 0)



Have you tried generating and inline critical CSS for your homepage? This can really boost your initial load times.

SEO Learner 04

5:59 am on May 24, 2024 (gmt 0)

Top Contributors Of The Month



No...but one of the experts has given me the same suggestion.

Kendo

11:40 am on May 28, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



use a content delivery network (CDN) to enhance your site's performance and load times.

I think that there is only a saving here when everyone is using the same JS and CSS. Otherwise, after the first page, the resources for subsequent pages will come from cache... the server's cache, your ISP's cache and your own browser cache.

Elizabeth

4:32 am on Jun 6, 2024 (gmt 0)



Inorder to increase page, these are the few things to keep in mind :
- Limit redirects
- Limit plugins
- Compress and optimize Image
- Minify HTML or CSS - Limit blank spaces in the source code
- Choose a good web hosting platform.

<snip>

[edited by: not2easy at 8:49 am (utc) on Jun 6, 2024]
[edit reason] Please see TOS [webmasterworld.com] [/edit]

Kendo

12:10 pm on Jun 6, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Limit blank spaces in the source code

It it really worth trashing your html for the sake of saving a few Kb in total page size/download?
This 34 message thread spans 2 pages: 34