Monday, January 23, 2017

JavaScript that works with both client side and server side

See the StackOverflow Article:

Require.js Tutorial playlist:

Meh. I had this lodash script working in node, and now it does not want to work in the browser. Instead of the script src="". I'm trying require.js . It might help. Look at the load time of lodash verses example.js (my custom code) .

Edit: yes using require.js solves the issue and the file loads.

Requirejs doc:

Requirejs module YouTube:

AMD (Asynchronous Module Definition) :

Also see in common with common.js and require.js : WebPack (

No comments:

Post a Comment