inject_registered_assets Function

Provides a marker that tells the rendering engine where to inject all registered assets. This should be used in the case where the order of script loading between registered and manually injected scripts matter.

If no inject_registered_asset() call is made, the registered assets are injected into the bottom of the head tag by default.

This function should only be called once per page render

<html>
    <head>
        <script src="script-to-load-first.js"/>
        {{ inject_registered_assets() }}
        <script src="script-to-load-last.js"/>

    </head>
</html>