Pseudo Random Nonsense Generator

External javascript method 1

· note

external javascript method 1

serving with html

  • by opening index.html
  1. create your html file and save it (e.g. index.html)
  2. write your js code in a file (e.g. client.js)
  3. preprocess that file with browserify (e.g. browserify client-before -o client-after.js)
  4. index.html points to client.js

external synchronous

1x html file, 1x js file

html file runs, calling the (browserified) app.js file

how?

Browserify parses the AST for require() calls to traverse the entire dependency graph of your project.

  • this is because you don’t use node.js to run it, but rather you run the entire html (and js with the node-specific methods) through the web browser.