minification c. File concatenation d. Compression (gzip/Zopfli) e. Async scripts f. Leverage caching g. Light font format (WOFF2) h. Image sprites i. Avoid redirection Structure
Remove unused CSS c. Remove duplicated or combine similar attributes (selector, color, size, font family) d. Offline with service worker e. Set performance budget f. etc Structure
h1 Heading #container.col p. Jade is a terse and simple templating language with a strong focus on performance and powerful features. !!! %html{:lang => "en"} %head %title Page Title %body %h1 Heading #container.col %p Haml is a beautiful, DRY, well-indented, clear markup: templating haiku.
-g gulp grunt # Install in repo development dependencies $ npm install --save-dev gulp grunt # Create a gulpfile.js or Gruntfile at the root of repo $ vim gulpfile.js $ vim Gruntfile
slush # Install a generator $ npm install -g generator-* $ npm install -g slush-* # Using a generator $ cd path/to/repo $ yo <generator-name> $ slush <generator-name> Getting Started with Yeoman/Slush
-v # Run Gulp/Grunt to do something $ gulp <command> $ grunt <command> # Serve our web app for development $ gulp serve $ grunt serve # Build our web app for production $ gulp build $ grunt build