Rohan Bagchirohanbagchi.hashnode.dev·Mar 2, 2022Building a custom RequireJSRequireJS works on the principle that we can define functions that depend on values returned by other functions. This helps us write modular code. Here, we will assume all functions are in a single file. The ask goes like this: define('moduleName',fu...126 readsJavaScript
Tomas Alabestomasalabes.me·Sep 12, 2015Adding CSS with RequirejsProblem In one of my projects I was using requirejs and I had the situation where I had html templates with links to external css files, after I appended these templates to the DOM, the javascript that needed to use that styled DOM didn't have the st...requirejs