Tuesday, September 27, 2022
HomeWordPress Developmenthooks - Eradicating script tags which can be loaded by different script...

hooks – Eradicating script tags which can be loaded by different script tag


I’ve a 3rd get together script tag that embeds a type that masses its personal scripts and kinds. These loaded scripts embrace jQuery amongst others, and since i already used WP’s personal jQuery i wish to take away the third get together jQuery script. I’ve tried wp_head, wp_footer, the_content hooks to no avail since they solely gave me the unique script tag earlier than it masses the opposite scripts.

Is there a hook that offers with the ultimate HTML after each script is downloaded and parsed? Then i may simply do a filter by regex on it.

Additionally, the scripts when loaded are appended as async in order that complicates issues up. Is it doable to forestall the scripts to execute?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments