https://webkit.org/blog/427/webkit-page-cache-i-the-basics/
https://webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/
public static class DocumentLanguageValidator | |
{ | |
// Language validation regexes | |
private static readonly string[] RestrictedLanguagePatterns = new string[] | |
{ | |
// Arabic (Includes Persian and Urdu) | |
@"[\u0600-\u06FF\u0750-\u077F]", // Arabic Script and Supplement | |
// Chinese (Unified Han Characters) | |
@"[\u4E00-\u9FFF]", // Mandarin and Cantonese |
// Returns a function, that, as long as it continues to be invoked, will not | |
// be triggered. The function will be called after it stops being called for | |
// N milliseconds. If `immediate` is passed, trigger the function on the | |
// leading edge, instead of the trailing. | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; |
//taken from http://stackoverflow.com/questions/9521921/why-does-console-log-apply-throw-an-illegal-invocation-error | |
var module = { | |
exports: {} | |
} | |
function logr() { | |
var i = -1, | |
l = arguments.length, | |
args = [], |
https://www.youtube.com/watch?v=MpGLUVbqoYQ&feature=youtu.be
Code and commits: https://github.com/Colt/webpack-demo-app
// webpack.config.js
module.exports = {
entry: "...",
Mobile touch swiper
A lightweight JavaScript library for creating particles