Support » Theme: Tiny Framework » Front page image sizes

  • 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 4 weeks, 1 day 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="http://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="http://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-960x350.jpg 960w, http://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-300x110.jpg 300w, http://mtomas.com/wp-content/uploads/2017/09/digital-dreams-1155914-e1506008775127-768x280.jpg 768w, http://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)
  • You must be logged in to reply to this topic.