4

I want to use javascript file in Magento 2.3 footer before the body and simple javascript, not jQuery.
How can I do that? I have added requirejs-config.js file in module/view/frontend code is

 var config = {
        map: {
            '*': {
                hello:'module_name/js/hello',
            }
        }
    };

and i have hello.js file in web/js folder but that javascript is not working at all . and most important is i want to add that file in the footer .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.