Plugin freezes the Admin’s Widget page
-
Hi, this plugin is making the Widgets page on the admin fail to load completely, rendering the admin useless for widget management.
When loading the admin, I’m getting this message:
[Violation] Long running JavaScript task took ###
(the ### varies but it’s usually around 500ms give or take 200ms).This is caused by the widget fetching all the tags on the database for the filter options.
This is a news site that’s been online that has accumulated over 20.000 Tags created over the years.
Currently there are 5 instances of the Widget on the site, so when the page loads, there are over 100K tags being fetched and loaded thus making the script take too long and throw the error.
Besides cleaning the tags (work in progress but not an easy task with this client), is there anything that can be done to improve this?
Also, I don’t know how often this occurrence might happen, but in case it’s worth it, for a future release, maybe change the select input for an autocomplete option so it loads the tags only when searched for?
- The topic ‘Plugin freezes the Admin’s Widget page’ is closed to new replies.