From #wpmelb last night, here’s the filter I use for adding the async attribute to script tags.
https://peterwilson.cc/code-samples/async-javascript-wordpress-filter/
Archives: Notes
-
-
<style> .js #w {display:none; } .no-js #w {width:auto; width:calc( 1px - 1px ); overflow:hidden; } </style> <div id="w">I resent you</div>
-
A one word search on Flickr has produced a large bucket of crazy. That word: LIES.
-
It’s both weird and convenient this works.
<script> var pwcc="working"; alert( window.window.window.pwcc ); </script>
-
Kickstarter to try and regain credibility after selling out to a politician.
-
The schedule for WordCamp Brisbane is now available, check it out while buying your ticket. https://brisbane.wordcamp.org/2015/schedule/
-
After seeing Nacin’s talk, I stand by my call on the most important Emoji commit. I meant the full feature, not just the polyfill.
-
Huffduffing the ALA Sass Talk to keep up with Drama. http://alistapart.com/event/sass-talk
-
Four years ago today the UK condemned itself to an eternity of tactical voting.
https://twitter.com/pwcc/status/66838672535851008
-
When someone says they’d rather crash a site’s JavaScript than validate data & you decide to wait a week before replying. ?