MiniScripts (@miniscripts) header
MiniScripts (@miniscripts) profile picture

Bite-sized scripts for everyday use. Tweets will largely cover front-end development technologies: HTML, CSS, and JavaScript. Managed by @jonathansampson

Joined January 2014
4.10.8 The datalist element <input list="fam"> <datalist id="fam"> <option>Luke <option>Vader </datalist> teapawt.net/miniscripts/status/676…
1
5
6
Are your selectors too weighty? Are you making things harder on yourself and others with excessive specificity?
1
2
4
Use :nth-child, :nth-of-type to more accurately target elements (IE9+): p:nth-child(even) { margin-left: 2em; }
You can often times get away with writing less markup. Check "Tag omission" in the HTML spec. Here's an example:
Does your Node.js application need user input? The stable `readline` module lets you ask questions and get answers.
1
2
Easily extend support for window.scrollY back to Internet Explorer 10 and 11.
5
4
Did you know you can extend native functionality with ease? Need automatic XHR logging? No problem! Neat, right?
3
6
Additional values can be provided to setTimeout and setInterval, which will be passed to the function.
3
23
21
By extending the prototype of your constructor function, you can override the default output of "[object Object]".
4
4
You can find out what events jQuery will handle by passing a reference to the $._data method. Use cautiously.
1
4
5