[wp-trac] [WordPress Trac] #21256: New theme feature - add_theme_support( 'content-width', $defaults )

WordPress Trac noreply at wordpress.org
Sat Apr 13 20:55:39 UTC 2013


#21256: New theme feature - add_theme_support( 'content-width', $defaults )
--------------------------------------+------------------------------
 Reporter:  ramiy                     |       Owner:
     Type:  feature request           |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Themes                    |     Version:  3.4.1
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback 2nd-opinion  |
--------------------------------------+------------------------------
Changes (by wycks):

 * cc: bob.ellison@… (added)


Comment:

 On many sites the use of the `$content_width` is the largest reason for
 slow page loading due to how it resizes images via HTML. Think about all
 the sites using WordPress and the enormous amount of bandwidth pollution
 it causes.

 Using it for embeds and editor previews seems to be fine since this has
 little to no effect on the performance of a site, using it to resize
 images on the other hand does effect the user experience.

 The only thing I can think of would be to set the max width for images
 into an actual real image size, something like `max-post-width` instead of
 just the default 3 (which is exactly what I do in many themes).

 Discussion on [http://wordpress.stackexchange.com/questions/86950/what-
 is-a-good-alternative-to-using-content-width-for-image-optimization WPSE]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21256#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list