wp-media / wp-rocket

Performance optimization plugin for WordPress
https://wp-rocket.me
GNU General Public License v2.0
701 stars 218 forks source link

Enhance Delay JavaScript oneclick UI #6090

Open DahmaniAdame opened 1 year ago

DahmaniAdame commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently, the Analytics & Ads tab is holding items outside of what the title describes.

A couple of examples:

Having one category for them all simplifies the interface but the cost is not showing potential exclusions that customers can use in a human-readable way and without hitting the support.

To better organize this part, let's do the following:

Separate WordPress related exclusions vs. 3rd party exclusion by creating two separate groups:

image

The WordPress groups will hold:

And the 3rd party group will hold descriptive tab titles for their scripts types category. Example:

We need a reasonable threshold of having a separate.

Anything below the threshold will be part of the Other Services tab.

The implementation will require adding the additional scripts category labels as part of the Type field, and updating all current entries.

Once done, we will have better visibility of the threshold to apply.

Additional context Discussed on Slack - https://app.slack.com/client/T02RYMVKQ/C04M1V3DLPK/thread/C04M1V3DLPK-1683794776.011499

piotrbak commented 1 year ago

@DahmaniAdame Thinking loudly, I wonder what'll be the impact for older versions when changing the categories. Especially, for people who:

  1. Are on the older version
  2. Have already excluded some affected 3rd-parties
  3. Update the list to the new one

That's something to be tested

DahmaniAdame commented 1 year ago

@piotrbak one way to possibly avoid adding any complexity is to keep the type script and add a subtype/category field on the backend. Let's hear from @wp-media/php what would be the most efficient way to manage backward compatibility.