Hi L&L team,
I recently had a problem with the loading times of some admin pages caused by another plugin, and while troubleshooting I happened to discover that L&L’s CSS and JS files are loading on some pages where they are not actually needed. Since I don’t develop plugins myself, it’s difficult for me to assess whether this would be easy to implement or even make sense, but since the files are about 0.5 MB in total, I think it would be nice if the loading could be restricted to keep the backend clean and lean.
The files in question are the following:
JS files:
- scsslint.min.js
- jsonlint.min.js
- jshint.min.js
- htmlhint.min.js
- csslint.min.js
- codemirror.min.js
CSS files:
- codemirror-theme-light.min.css
- codemirror.min.css
These files are loaded on the following wp-admin pages:
- on all taxonomy and custom taxonomy pages (list view, edit view)
- on all attachment pages (list view, grid view, edit attachment view)
- on all edit post pages (core post types and custom post types; no matter if a post type has a single page or not)
- within WP Customizer
- on edit menu pages (/wp-admin/nav-menus.php)
- on most ACF pages (ACF option pages, edit ACF field group, edit ACF CPT, edit ACF custom taxonomy, ACF tools)
- on edit user profile pages
- within Elementor Editor, regardless of whether a tangible template widget is present or not