• Hello,
    I decided to have another go at optimization my rather poor WP performance.

    One of the issues concerns the front page. While it is not a major page on my site (<3%), I’m wondering is there a way to force the page template to show smaller sized images on the front?

    I guess this must be done by selecting some user set image size format as those defined by Tiny are not much better here?

    Now the template apparently uses full sized images which are then HTML/CSS scaled down to fit the location.

    • This topic was modified 7 years, 1 month ago by lassial358.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Tomas Mackevicius

    (@tomasm)

    Actually, header image is optimized by WP automatically, depending on the viewport size. If you make page smaller and then reload your page with CTRL+F5 you can get similar HTML source, please note srcset:

    <img src="https://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-960x350.jpg" class="photo u-featured attachment-custom-header-image size-custom-header-image wp-post-image" alt="Code sharing" id="featured-image" itemprop="image" srcset="https://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-960x350.jpg 960w, https://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-300x110.jpg 300w, https://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-768x280.jpg 768w, https://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-620x226.jpg 620w" sizes="(max-width: 960px) 100vw, 960px" width="960" height="350">

Viewing 1 replies (of 1 total)
  • The topic ‘Front page image sizes’ is closed to new replies.