07 February 2019
Here we are going to learn how to remove type attribute from script and style tag added by wordpress.
You can always go all-out and use output buffering:
Description of above two hooks the first Output buffering is turned on at the start (wp_loaded hook), right as wp + theme + plugins + etc are fully loaded, and the second is turned off at the last moment (shutdown hook) which runs just before PHP shuts down execution. The regex must work through everything, and that could be a lot of content.