Fix performance issues caused by focal-point preview

Created on 24 April 2024, 2 months ago
Updated 21 May 2024, about 1 month ago

Problem/Motivation

The focus point preview button can websites to slow down. This needs to be fixed.

Steps to reproduce

When setting the focal point on images, web admins get the option to preview the result of the focal point via a preview button underneath the image.
This opens up a popup that generates all available image styles. Depending on the size of the original image and the amount of image styles, this can cause the entire website to be unresponsive. (made worse by the generated drimage syles)

  • Go to an image in the media overview
  • Edit an image
  • Change the focal point
  • Click the preview button
  • See the website burn

Proposed resolution

With this patch, you can set a limit on the available image styles in the popup: https://www.drupal.org/project/focal_point/issues/2830678 Limit image styles on preview page Needs work
By defining some basic image styles in RS out of the box, we can prevent this from happening.

🐛 Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

🇧🇷Brazil webfordreams

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024