Support » Plugin: Autoptimize » how can i put some js after atuoptimize js

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, if you’re into PHP/ WordPress development you could hook into the autoptimize_html_after_minify filter and do a str_replace() there to replace </body></html> with <script>your JS here</script></body></html> ?

    hope this helps,
    frank

    Five Golden star for your great plugin.
    🙏

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how can i put some js after atuoptimize js’ is closed to new replies.