From 4b08b1964bc1ab843653f123e19bf0d000715306 Mon Sep 17 00:00:00 2001 From: kounelios13 Date: Fri, 21 Jul 2017 23:42:13 +0300 Subject: [PATCH] fixed header markup --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 78f9d50..074e3f8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Please note that in order to be able to load an asset from a CDN in the built fi **If you want IE6-8 support**, clone this repo, but replace the jQuery file with a jQuery 1.X release. The jQuery 2 used in this project does not work with those browsers, a 1.X release is needed. Modify the jQuery path in [app.js](https://github.com/requirejs/example-jquery-cdn/blob/master/www/js/app.js#L9), to for example `//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min` -###Project structure +### Project structure tools/ @@ -28,7 +28,7 @@ www/js/ - app/ - main.js -###How it's set up +### How it's set up The main file of this setup is www/js/app.js. It is loaded from app.html by this line: ```html @@ -60,11 +60,11 @@ define(["jquery", "jquery.alpha", "jquery.beta"], function($) { }); ``` -###How to see it in action +### How to see it in action Just serve up the www/ folder using any web server you'd like. To get you set up quickly, we include a node.js static file server in tools/. Start the server by typing `node tools/server.js` from the command line, and then go to [localhost:8888/www/app.html](http://localhost:8888/www/app.html) in your browser. -###How to optimize it using r.js +### How to optimize it using r.js To use the optimizer, you need [node.js](http://nodejs.org) or Java 6 installed. These instructions assume Node is being used. See the [Optimization page](http://requirejs.org/docs/optimization.html) for more information. r.js and a build configuration is included in the tools/ folder. To build, navigate to tools/ and type `node r.js -o build.js`. You will find the built product in the www-build folder. If you serve that directory instead, you can see in the network panel of the web developer tools that the files aren't loaded separately any more.