Feature Request Summary:
-Support for keeping wp_head enqueued stuff in place
-Support for excluding scripts, styles, templates by name and id
-Support for explicitly moving scripts from body to head
-Support for prioritization/ load order management
I came here for a similar feature request like “szepe.viktor”.
The “Speed Booster Pack” Plugin’s Option “Move scripts to the footer” seems to keep code added/ inlined explicitly to the header like the “Ajaxify” Plugin does add_action('wp_head','ajx_jscript');
. This code will remain in the header while “Autoptimize” shift jQuery to the footer, so it breaks Ajaxify’s functionality. By the way, we Ajaxify uses very wrong enqueueing (no enqueue, no dependency), but it brought up an important question: What about non-JS-Script’s like <script type="text/x-handlebars" data-template-name="bla" id="bla">
would it not be nice to be able to exclude them by specifying id and template-name!? What about moving things from body to head? If the dependency resolution is broken, you might need to enqueue/ enforce a script to load in the head.