To have a gulp workflow that with a single process,
- watches for any sass changes, then compiles sass source into css
- watches for any changes in the public directory, triggers live-reload
- serves your static content in
public/
| var domIsReady = (function(domIsReady) { | |
| var isBrowserIeOrNot = function() { | |
| return (!document.attachEvent || typeof document.attachEvent === "undefined" ? 'not-ie' : 'ie'); | |
| } | |
| domIsReady = function(callback) { | |
| if(callback && typeof callback === 'function'){ | |
| if(isBrowserIeOrNot() !== 'ie') { | |
| document.addEventListener("DOMContentLoaded", function() { | |
| return callback(); |
| # Moving from jQuery | |
| ## Events | |
| ```javascript | |
| // jQuery | |
| $(document).ready(function() { | |
| // code | |
| }) |