• So I have seen a few suggestions on the forums that should be implemented, but are not. First I understand that this request was revoked – but I also believe it should just exist by default, as its a huge burden on SEO.

    That being….

    Please move wpemojiSettings js scripts to the footer. I realize why it doesn’t work by default – but this is a script that is such a burden you should just scan for it and move it to the bottom of the page (not the same as disabling which is what other plugins you recommended in another post do).

    Next – as you mentioned to the person who made the request, you can’t move stylesheets to the footer as it takes very specific per site checking to do that correctly. I absolutely agree and disagree.

    What you can do is move all style tags to the footer. It seems most don’t understand why google complains about this. Style tags should NEVER be in the head of a website. ONLY meta information, header information, and link tags which import css files (and perhaps js import files) should be in the header.

    So I actually think loose style tags could, should, and would benefit users to move to the footers.

    I would very much like to see both of these features implemented. As I believe the SEO benefits would be outstanding. If you are not aware of this, the first 100 ~ 250 characters that are not actual tags – matter a LOT in SEO. So getting loose scripts and styles that are not links, is of utmost importance ??

    Please note I am recommending the script tag be moved to the footer NOT the link tag (which is how to call external css files)

    Any chance of this happening?

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

    (@joshuadnelson)

    @viraladmin,

    Thanks for the feedback and requests!

    The featured you’re suggesting (removing style tags from the head) might be useful to some, but most will see this as a breaking change (most style tags need to be above the content they are styling) and it would be against standards (style tags are intended to be in the head).

    This the plugin leverages hooks in the wp_enqueue system to disable printing scripts in the head, which results in all scripts being dumped into the footer. There are more control settings and options now than originally, but the core functionality is removing a few hooks.

    Any non-link style tags are not part of the enqueue process since any theme or plugin can use a few methods to add tags in the head – none of which are centralized like the wp_enqueue system – achieving that goal would be functionally difficult on a broad/generic level of a plugin. Ultimately, this is something better left to a custom function in a theme’s function.php file.

    I am hesitant to bring in more advanced functionality for a limited use case and I don’t see the reason (nor have the time) to devote to a problem more easily solved by better theme and plugin management. If you’d like to elaborate what you’re looking for, perhaps I am not understanding it, and/or submit a pull request, I’m happy to review and consider it.

    Now, for the wp-emoji script. That script and stylesheet is loaded outside of the enqueue system as well. I would be happy to add the ability to remove it, but there’s already a plugin that will do that for you.

    Hope that clarifies the reasoning a bit more. Please don’t hesitate to reach out if you have more concerns or want to discuss further.

    Thread Starter viraladmin

    (@viraladmin)

    I would be happy to add the ability to remove it, but there’s already a plugin that will do that for you.

    As I tried to explain in my first post – your plugin doesn’t remove anything – which makes it different from alternative plugins. I am suggesting instead of removing it a check box option in the admin area “would you like to move the wp-emoji script to the footer”.

    it would be against standards

    Oh you shouldn’t quote standards to me ?? You are incredibly wrong and quoting the wrong parts.

    https://developers.whatwg.org/semantics.html#attr-style-scoped

    style is absolutely allowed outside the head so long as it has a scoped attribute. Now technically putting it in the footer would still not be a valid scope – but it can in fact be used outside of head. None the less – point taken.

    Still I would like this plugin to move the wp-emoji script to the footer, instead of removing it. ??

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Point taken on moving emoji to the footer! That would be well within the scope of this plugin and I’ll test that out and add it to the plugin on the next release, likely as an option in the admin as you’ve suggested.

    I hear what you’re saying on the standards, but my larger concern is the feasibility of the request in relation to this plugin. I’ve taken a stance on leaving stylesheets alone and I still think that’s the correct stance for this plugin.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Just do it!’ is closed to new replies.