You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PERF] web_editor: save original image size in element attributes
When computing the original size of the image, the original image is
loaded to make sure we get the right value.
This commit caches it into the `data-width` attribute of the image to
avoid loading the original image every time. This fixes the performance
penalty introduced in commit [1].
Because the attachment/original image could change between page reloads,
the `data-width` attribute is removed in `cleanForSave`.
[1]: 60e25f7
task-3847470
0 commit comments