-
Notifications
You must be signed in to change notification settings - Fork 873
Photon: HiDPI + srcset #2918
Copy link
Copy link
Closed
Labels
EnhancementChanges to an existing feature — removing, adding, or changing parts of itChanges to an existing feature — removing, adding, or changing parts of it[Feature] Photonaka "Image CDN". Feature developed in the Image CDN package and shipped in multiple pluginsaka "Image CDN". Feature developed in the Image CDN package and shipped in multiple plugins
Milestone
Metadata
Metadata
Assignees
Labels
EnhancementChanges to an existing feature — removing, adding, or changing parts of itChanges to an existing feature — removing, adding, or changing parts of it[Feature] Photonaka "Image CDN". Feature developed in the Image CDN package and shipped in multiple pluginsaka "Image CDN". Feature developed in the Image CDN package and shipped in multiple plugins
WordPress 4.4 adds native srcset support. Core currently only look to the width descriptor so browsers can choose the right image width based on need. The spec also supports pixel density, e.g. 1x, 1.5x, 2x, etc, so we should be able to use this, possibly deprecating device-px.js (within Jetpack at least) within a few versions.
Initial read is that you can't use both the
wandxdescriptors for the same image set, though.Marking as 3.9 for now.