Skip to content

Instantly share code, notes, and snippets.

ehimsi / jquery.deferred.promise.js
Created April 17, 2019 09:34 — forked from pbojinov/jquery.deferred.promise.js
simple jQuery Deferred example
function getData() {
var deferred = $.Deferred();
'url': '',
'success': function(data) {
'error': function(error) {
//two main tasks are 'gulp watch' and 'gulp build'
var gulp = require('gulp');
//to use in conjunction with chrome plugin:
livereload = require('gulp-livereload');
//for css:
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = reqwuire('gulp-minify-css'),