From 5027eeaab2c1873de8ff48d5c87411be6f26779a Mon Sep 17 00:00:00 2001 From: Arthur Verschaeve Date: Thu, 10 Jul 2014 12:33:56 +0200 Subject: [PATCH] Docs: Update info from js.md regarding plugins.js Add information about the script from the `plugins.js` file. Ref h5bp/html5-boilerplate#1554 Close h5bp/html5-boilerplate#1558 --- doc/js.md | 6 ++++++ doc/misc.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/js.md b/doc/js.md index 2781c984c5..2088d9fbfe 100644 --- a/doc/js.md +++ b/doc/js.md @@ -22,6 +22,12 @@ One approach is to put jQuery plugins inside of a `(function($){ ... blanket. Read more about [jQuery plugin authoring](http://docs.jquery.com/Plugins/Authoring#Getting_Started) +By default the `plugins.js` file contains a small script to avoid `console` +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. diff --git a/doc/misc.md b/doc/misc.md index 3fa59fde0d..f29cf90b38 100644 --- a/doc/misc.md +++ b/doc/misc.md @@ -65,7 +65,7 @@ In the repo the `.htaccess` is used for: * It blocks access to files that can expose sensitive information. * It reduces MIME type security risks * It forces compressing (gzipping) -* It tells tell the browser whether they should request a specific file from the +* It tells the browser whether they should request a specific file from the server or whether they should grab it from the browser's cache When using `.htaccess` we recommend reading all inline comments (the rules after