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

    (@optimizingmatters)

    Could be done using AO’s API I guess;

    1. hooking into autoptimize_html_after_minify
    2. extracting the AO’ed JS <script src=... > from the HTML
    3. getting the filename from that script src
    4. reading the file from that filename
    5. replacing teh <script src=...> with a script block with the JS contents
    6. returning the HTML

    So the question is; are you into PHP coding @abhishe11sharma ? ??

    Thread Starter Abhishek

    (@abhishe11sharma)

    Hi thanks to reply

    I did not understand how to do this. I do not know PHP Coding. Can you tell me this?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    If I had the time to write it, I would @abhishe11sharma, but I’m afraid I don’t, sorry.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to make js inline through Autoptimize’ is closed to new replies.