-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make optimized version of original image size, never load original image. #11822
Comments
See also: https://core.trac.wordpress.org/ticket/37840 Not sure if this is better tracked here or only in Trac, but either way it's an interesting idea. |
@chrisvanpatten Much of this is Gutenberg-related as Gutenberg changes the image management and display modalities significantly. |
@mor10 Definitely agree that it's an issue that Gutenberg magnifies, I'm just not sure it's something where the fix would be made within the Gutenberg project — it would need to be a core patch, wouldn't it? It's an issue no matter which editor you use, or even if you upload outside of an editor (e.g. from the Add New Media screen, or programmatically via Totally makes sense to have a tracking ticket here, but I think it's worth clarifying where the fix would be made :) |
The fix needs to happen both in core and Gutenberg. #6177 is already looking at the |
I also agree with @chrisvanpatten that this should be handled primarily via WP#37840. The image creation and srcset generation happens outside of Gutenberg. |
Sure. But it has to be done in conjunction with Gutenberg, and should be handled before merge/5.0 as |
@mor10 I see this has issue has been stale and inactive for a long time and has other closed issues mentioning it. Is this issue still relevant or can this be closed? |
This issue is still relevant and it still exists; there is a core ticket for this at https://core.trac.wordpress.org/ticket/37840 as well. |
Related to #6177 and #6131 and #11821 . Filed as separate issue because #6177 is getting too big.
Problem
If a user uploads an unoptimized image, maybe directly from a digital camera, that image file may end up being sent to the visitor browser causing a significant performance hit. For example, this happens when the viewport or displayed width of an image matches or exceeds the original uploaded image width as the original image is the largest image in the
srcset
attribute array.Solution
srcset
array.The text was updated successfully, but these errors were encountered: