This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Worker process: | |
EXEC [notifications].[Listen] N'something-happened', 5000 | |
// Some other process: | |
EXEC [notifications].[Notify] N'something-happened' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (document) { | |
if ('content' in document.createElement('template')) { | |
return; | |
} | |
Object.defineProperty(HTMLUnknownElement.prototype, 'content', { | |
enumerable: false, | |
configurable: true, | |
get: function() { | |
if (this.localName !== 'template') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var polyfill = function(prototype) | |
{ | |
if (!('firstElementChild' in prototype)) { | |
Object.defineProperty(prototype, 'firstElementChild', { | |
get: function() { | |
var nodes = this.childNodes; | |
var length = nodes.length; | |
var current; | |
for (var i = 0; i < length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
</head> | |
<body> | |
<style> | |
.hover-me:hover { | |
color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>inline-or-nah</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
OlderNewer