- Joined
- Apr 23, 2019
- Messages
- 214
- Likes
- 168
- Degree
- 1
I found out what was causing my CLS to be bad.
Apparently, it's because of my logo.
For my logo, I use a PNG with the dimensions 640x280.
Size: 15.0KB.
Doing my speed tests, I got a message saying that I should add explicit dimensions for my images.
So I added this:
(I tried it with and without "px").
This resolved the warnings.
However, now that I was diving into the CLS problem, I noticed that when I remove my logo, I get a perfect CLS score.
I also got a message on some speed test websites that images should be hosted on a subdomain, but they were only complaining about my logo. So I placed it on images.mydomain.com.
Clearly, I did something wrong regarding my logo, but I have no idea what. Any help would be greatly appreciated.
My theme is BuSo lightning, but I think my screenshot gave that away already
I noticed my thread got moved. Apologies, I wanted to post it in the "no dev question is stupid" thread, but I must have made a mistake in my tabs. Here is fine tho!
Apparently, it's because of my logo.
For my logo, I use a PNG with the dimensions 640x280.
Size: 15.0KB.
Doing my speed tests, I got a message saying that I should add explicit dimensions for my images.
So I added this:
(I tried it with and without "px").
This resolved the warnings.
However, now that I was diving into the CLS problem, I noticed that when I remove my logo, I get a perfect CLS score.
I also got a message on some speed test websites that images should be hosted on a subdomain, but they were only complaining about my logo. So I placed it on images.mydomain.com.
Clearly, I did something wrong regarding my logo, but I have no idea what. Any help would be greatly appreciated.
My theme is BuSo lightning, but I think my screenshot gave that away already
I noticed my thread got moved. Apologies, I wanted to post it in the "no dev question is stupid" thread, but I must have made a mistake in my tabs. Here is fine tho!