when binding an event handler also call it for a first time: onAndNow
jQuery (edge), HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
One-liner javascript browser and mobile detection
jQuery 2.2.3, HTML, CSS, JavaScript
The actual real-life example is way more complicated and isn't accessible to the world. This example is based on the real-life code. https://github.com/jquery/jquery/issues/1868
jQuery 1.8.3, HTML, CSS, JavaScript