Filter hook for modifying inline javascript
-
Hi!
First, congratulations for this great plugin!!!
So far, this is the best optimization plugin I could test, even in its free version! Code is very well optimized but doesn’t break sites (I mean not too extreme like others…).I have a problem with some inline javascript, though, which prevents me from deferring jquery.js (or other dependancies).
So I would like to replace some inline JS like this:
document.addEventListener(“DOMContentLoaded”, function() { INLINE JS CODE });This way, it will be executed only when DOM is ready, and I can deferr JS dependancies.
I know how to write PHP for this, but now I need to execute it at the right moment.Is there a filter hook I could use to filter html content output?
I couldn’t find any documentation on this.Thanks in advance.
- The topic ‘Filter hook for modifying inline javascript’ is closed to new replies.