Skip to content

Commit

Permalink
Updates js.md (h5bp#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblarsen authored Aug 1, 2017
1 parent a0aa837 commit f91a925
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/doc/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ Information about the default JavaScript included in the project.
## main.js

This file can be used to contain or reference your site/app JavaScript code.
For larger projects, you can make use of a JavaScript module loader, like
[Require.js](http://requirejs.org/), to load any other scripts you need to
run.
If you're working on something more advanced you might replace this file
entirely. That's cool.

## plugins.js

This file can be used to contain all your plugins, such as jQuery plugins and
other 3rd party scripts.
other 3rd party scripts for a simple site.

One approach is to put jQuery plugins inside of a `(function($){ ...
})(jQuery);` closure to make sure they're in the jQuery namespace safety
Expand All @@ -27,11 +26,11 @@ errors in browsers that lack a `console`. The script will make sure that, if
a console method isn't available, that method will have the value of empty
function, thus, preventing the browser from throwing an error.


## vendor

This directory can be used to contain all 3rd party library code.

Minified versions of the latest jQuery and Modernizr libraries are included by
default. You may wish to create your own [custom Modernizr
build](https://www.modernizr.com/download/).
build with the online builder](https://www.modernizr.com/download/) or [command
line tool](https://modernizr.com/docs#command-line-config).

0 comments on commit f91a925

Please sign in to comment.