Skip to content

Instantly share code, notes, and snippets.


Paul Kinlan PaulKinlan

View GitHub Profile
triblondon /
Last active Aug 29, 2015
Edge conf 5: London 2015

#Early draft of Edge conf 5

This was a discussion of the schedule for Edge 5, which is now finalised, and the information below is out of date. See the website for current details.


Edge 5 will feature a single track of 4 sequential panel discussions on topics of universal importance and topicality to the web community, followed by lunch and then 12 breakout sessions across 4 tracks, in which face to face discussions of specific current and future web topics can be had in boardroom style with groups of up to 50.

ahmednuaman / detect_if_dom_is_ready.js
Created Mar 8, 2011
Using document.readyState to see if the DOM is ready
View detect_if_dom_is_ready.js
var timer = setInterval( function()
if ( /loaded|complete/.test( document.readyState ) )
clearInterval( timer );
// go!
}, 10 );
View gist:2853817
var i = new Intent({
"action": "",
"type": "image/*",
"data": blob
var onsuccess = function(data) {
var img1 = document.getElementById("img1");
img1.src = URL.createObjectURL(data);

Shortcuts API Specification

This explainer is for the Shortcut API


Some platforms like Windows and Android have ways to add menu items to the app launcher icon itself, here after called shortcuts. These can perform certain app actions. On Android in addition, you can drag these shortcuts to the homescreen.

View gist:5774636
* Get requestAutocomplete data. Can only be called as part of an interaction event
* listener such as mouse up/down, click, key & touch.
* @param {{billing: boolean, shipping: boolean}} opts
* If billing is true, credit card & billing address details will be requested.
* If shipping is true, a shipping name & address will be requested.
* @param {function(response:Object<string, string>)} callback [description]
* You callback is passed a single response object in this format:
* {
mrdoob / RequestAnimationFrame.js
Created Feb 22, 2011
Provides requestAnimationFrame in a cross browser way.
View RequestAnimationFrame.js
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish /
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||
addyosmani /
Last active Oct 16, 2021
So, you want to run Chrome headless.

Update May 2017

Eric Bidelman has documented some of the common workflows possible with headless Chrome over in


If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome:

Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.