1

domReady! - You can use this feature of the RequireJS like the native Magento's modules use: <script> //<![CDATA[ require( [ 'jquery', 'domReady!' ], function($) { // Your Code }); //]]> </script> DOMContentLoaded - Executes after DOM is loaded (before img and css): ...


1

If it's a script, you can try wrapping your script code inside $( document ).ready(function() { // Your code }); This will ensure that your code written inside will be reflected once the page is loaded.


Only top voted, non community-wiki answers of a minimum length are eligible