Home Plugins inline javascript in head
Inline JavaScript in Head logo

Inline JavaScript in Head

by Palasthotel on WordPress.org

Boosts performance of critical short JavaScripts by placing their content directly into the HTML head.

(1)

CAUTION: This plugin is now deprecated! The successor plugin is Embed JavaScript File Content. The new plugin is rebuild from scratch and more rock solid: It respects order and position of scripts and extra scripts added via wp_add_inline_script or wp_localize_script don’t get lost. Give it a try!

In some cases you cannot wait for a JavaScript file to load, even if it is placed early in the section of your template. You can benefit from better performance, if you place the JavaScript code directly inside a