mashsb.min.css not using wp_register_style
-
I’ve been trying to optimize my site by removing unused css. when I checked chrome, it told me that mashsb.min.css had 81% unused css.
The best practice for overriding a plugin css it to use wp_dequeue_style/wp_deregister_style and then wp_register_style/wp_enqueue_style to add your custom css to replace it.
I went to mashsharer/includes/scripts and noticed that you are dynamically building the css and then doing a echo.
It seems like it would be better to use the wp filesystem api to create the css when changes are saved. Then you can use wp_register_style/wp_enqueue_style. This would allow other developers to dequeue your css as needed.
Does the premium code do this or is there any chance this would be fixed in the next update?
The topic ‘mashsb.min.css not using wp_register_style’ is closed to new replies.