If a site has many post thumbnails, the enqueue_admin_scripts method will add unnecessarily to the pageload. For one of my sites, this was adding up to about a quarter of a second.
This pull request ensures that scripts and styles will only be enqueued once per pageload.
If a site has many post thumbnails, the
enqueue_admin_scripts
method will add unnecessarily to the pageload. For one of my sites, this was adding up to about a quarter of a second.This pull request ensures that scripts and styles will only be enqueued once per pageload.