get_the_post_thumbnail src attribute value
-
What’s the reason for the get_the_post_thumbnail method to put a link to the full res image in the src attribute?
I have a hi-res featured image for a post. In the post list I’m displaying post thumbnail 300 pixels wide. WordPress produces correct secret attributes so that browsers load low-res images but not original hi-res image.
However, src attribute of the img tag contains a link to the original hi-res image. The downside of that behavior is that Google PageSpeed thinks my website is slow. According to current information slow websites get worse SEO-ratings than faster performing ones.
So my question is why is this the default behavior and if there any way to change it?
- The topic ‘get_the_post_thumbnail src attribute value’ is closed to new replies.