Skip to content

Enhance experience when installing _and_ activating a standalone plugin #880

@felixarntz

Description

@felixarntz

This is an enhancement for the experience of installing a standalone plugin via Settings > Performance and then immediately activating it, i.e. without refreshing the current screen. See #864 (review):

When installing one of the plugins and then activating (without reloading the page), it will end up on the regular Plugins screen rather than redirecting back to the Performance Lab screen. This is happening because the WordPress updates JS code doesn't set the Performance Lab specific activation URL on the button, but the regular WordPress one. This is not a dealbreaker, but if we can fix it somehow that would be great (e.g. is there some event listener we could use in JS to replace the URL with our own?).

This is not a major problem, and if we cannot resolve it without rewriting/copying a lot of WordPress core's update.js logic, we should probably not go above and beyond to fix it. But if there's a reasonable path to implement it (e.g. maybe an event listener where we dynamically replace the activation href attribute to use the perflab_activate_plugin action), it's worth improving the user experience.

Metadata

Metadata

Labels

InfrastructureIssues for the overall performance plugin infrastructure[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin only[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions