Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    That would definitely be intuitive! Emoji scripts are relatively new (WP 4.2).

    Those scripts are not enqueued with other scripts, but actually hooked into various other hooks to dynamically load the emoji scripts.

    There’s a plugin to disable them, or this code works too.

    Because the scripts are dynamically loaded, it shouldn’t be render-blocking or cause too much of a drag on the page speed, but that plugin works for removing them.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    I could certainly add an option to disable or move these scripts (if thats helpful and they still work in the footer as expected), if there’s interest in that, but currently the plugin only moves scripts that are enqueued.

    Thread Starter Steven Vachon

    (@prometh)

    If adding such a feature makes sense to you and to its users, then I’m all for it. I’m not too concerned with emoji specifically, but any similar inline scripts that can be moved out of the document header.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Ah, sure. The issue with inline scripts is that they are usually hooked into wp_head, which would requiring knowing the function name that generates the code and the priority it is hooked in at, as well. That’s something that has to be done custom for the specific site and can’t be easily done dynamically by a plugin like this one.

    Hope that helps.

    Joshua

    Thread Starter Steven Vachon

    (@prometh)

    Yeah, I’d figured as such. Thanks for all the info! I’ll just remove them myself in that case.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘some inline scripts not moved’ is closed to new replies.