Title: Sizes attribute calculations
Last modified: July 7, 2021

---

# Sizes attribute calculations

 *  [Jonas](https://wordpress.org/support/users/gnuworld/)
 * (@gnuworld)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sizes-attribute-calculations/)
 * Hi Florian
 * Have you ever considered extending the plugin to include the other major functionality
   that the lazysizes script seems to offer, namely to automatically calculate the
   sizes attribute for responsive images?
 * Most WordPress themes and even WordPress itself do a very poor job of providing
   good sizes markup for images and it can make a massive performance difference
   to page loading times.
 * I see quite a few WP plugins make use of the lazy loading functionality of lazysizes
   but none of the sizes calculation ability. On the face of it, it looks like something
   like your plugin which can process complete markup could provide a good foundation
   for adding or replacing sizes markup.
 * Probably outside the scope of what you had in mind when you built the plugin,
   but I find it interesting that no one has tried to integrate this given the need
   for it and ever growing focus on performance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Florian Brinkmann](https://wordpress.org/support/users/florianbrinkmann/)
 * (@florianbrinkmann)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sizes-attribute-calculations/#post-14634851)
 * Hi Jonas,
 * thanks for asking! Sounds like a candidate for an additional plugin setting. 
   I will give it a try and check how good it works.
 * Best,
    Florian
 *  Thread Starter [Jonas](https://wordpress.org/support/users/gnuworld/)
 * (@gnuworld)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sizes-attribute-calculations/#post-14637324)
 * Thanks [@florianbrinkmann](https://wordpress.org/support/users/florianbrinkmann/)
 * That would be amazing if you got it to work.
 * If you ever do find time to work on it and want some assistance with testing 
   and getting feedback then give me a shout. I can deploy across different client
   dev sites and evaluate the results. I’ve on-and-off been consulting with devs
   working on custom theme development projects to ensure that markup is correctly
   implemented, so have a good sense of what to look out for.
 * Best regards,
    Jonas

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sizes attribute calculations’ is closed to new replies.

 * ![](https://ps.w.org/lazy-loading-responsive-images/assets/icon-256x256.png?rev
   =1305473)
 * [Lazy Loader](https://wordpress.org/plugins/lazy-loading-responsive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lazy-loading-responsive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-loading-responsive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-loading-responsive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-loading-responsive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-loading-responsive-images/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jonas](https://wordpress.org/support/users/gnuworld/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/sizes-attribute-calculations/#post-14637324)
 * Status: not a support question