Permalink
Browse files

changed the filenames for app.js and app.enhance.js to reflect the ne…

…w enhance name. Updated referencing files.
  • Loading branch information...
1 parent f2eda78 commit cd7ce9717b50bd75bb49362f5c7b5c8b30a8a395 scottjehl committed Apr 18, 2012
Showing with 5 additions and 6 deletions.
  1. +2 −2 README.md
  2. +2 −3 _demo.html
  3. +1 −1 _demo/{app.enhance.js → enhance.audit.js}
  4. 0 app.js → enhance.js
View
@@ -112,14 +112,14 @@ Enhance has a few more methods that you might use.
While the Enhance core utility is very simple by itself; its real value is in the workflows it enables.
-Typically, a site that uses Enhance will have at least two files driving the progressive enhancement process: `app.js`, and a custom file that uses the `ejs` API to configure and enhance the user experience: for example purposes, `app.enhance.js`. The role of `app.enhance.js` is to determine if – and with which files – a browser's experience should be enhanced. Within `app.enhance.js`, any of the following steps might be taken:
+Typically, a site that uses Enhance will have at least two files driving the progressive enhancement process: `enhance.js`, and a custom file that uses the `ejs` API to configure and enhance the user experience: for example purposes, `enhance.audit.js`. The role of `enhance.audit.js` is to determine if – and with which files – a browser's experience should be enhanced. Within `enhance.audit.js`, any of the following steps might be taken:
* Determine if a browser is generally qualified enhancements and if not, exit early (perhaps by testing `document.querySelectorAll` support, or CSS3 Media Queries, or otherwise)
* Establish the CSS and JS files available for loading.
* Add certain CSS and JS files to the queue for loading based on various environmental conditions, browser capabilities, screen size, markup conditions, and more.
* Enhance the page by loading those files via a single, concatenated request.
-For an example of this process, see the `app.enhance.js` file in the `_demo` folder.
+For an example of this process, see the `enhance.audit.js` file in the `_demo` folder.
## Further notes.
View
@@ -7,15 +7,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sample template</title>
<link href="_demo/sample-files/general.css" rel="stylesheet" />
- <script src="app.js,_demo/app.enhance.js=concat"></script>
+ <script src="enhance.js,_demo/enhance.audit.js=concat"></script>
</head>
<body class="tmpl-home">
<h1>This is a sample template.</h1>
<div class="explain">
- <p>It includes app.js and an example file: app.enhance.js, which uses app.js to determine whether - and which - files should be added to enhance this browser's experience when JS is available.</p>
+ <p>It includes enhance.js and an example file: enhance.audit.js, which uses enhance.js to determine whether - and which - files should be added to enhance this browser's experience when JS is available.</p>
<p>If this browser's experience is enhanced, you'll see some notes on what's been added below.</p>
</div>
-
</body>
</html>
@@ -7,7 +7,7 @@
*/
(function( win ){
- //re-reference ejs var locally
+ // re-reference ejs var locally
var ejs = win.ejs,
docElem = win.document.documentElement;
View
File renamed without changes.

0 comments on commit cd7ce97

Please sign in to comment.