Skip to content

Instantly share code, notes, and snippets.

@gokhanozdemir
gokhanozdemir / domIsReady.js
Created February 23, 2017 13:57 — forked from devbyray/domIsReady.js
Vanilla JavaScript Document Ready (Cross-Browser)
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();
@gokhanozdemir
gokhanozdemir / Vanilla JS vs jQuery
Created February 22, 2017 14:44 — forked from erlendmrgist/Vanilla JS vs jQuery
Vanilla JS vs jQuery
# Moving from jQuery
## Events
```javascript
// jQuery
$(document).ready(function() {
// code
})
@gokhanozdemir
gokhanozdemir / README.md
Created November 1, 2016 17:17 — forked from theRemix/README.md
The Holy Grail - Gulp + Sass + LiveReload + Foundation

Gulp + Sass + LiveReload + Foundation

Goals

To have a gulp workflow that with a single process,

  1. watches for any sass changes, then compiles sass source into css
  2. watches for any changes in the public directory, triggers live-reload
  3. serves your static content in public/