サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
iPhone 16
www.tjvantoll.com
Quiz: What does this call to the web’s new fetch() API do? fetch("http://httpstat.us/500") .then(function() { console.log("ok"); }).catch(function() { console.log("error"); }); If you’re like me, you might assume this code logs “error” when run—but it actually logs “ok”. This expectation probably comes from years of jQuery development, as jQuery’s ajax() method invokes its fail handler when the re
Who doesn’t love emoji? As a massive emoji user on messaging and email apps, I’ve started to experiment with how I could bring my love of emoji into my day-to-day software development. And although this started as a bit of a joke, I’ve found emoji to be legitimately valuable in my development work in some cases. Why? We, as developers, routinely look at large amounts of text—whether it’s code, pro
Earlier this week Nilay Patel of The Verge published an article about how “The Mobile Web Sucks”, which caught my attention, as I had written about the mobile web’s woes just a few days before. But although both our articles argued that reading content on the mobile web can be less than ideal, our reasoning diverged when it came to explaining why. Whereas I argued that the issue is the web’s broke
HTML imports are cool. If you haven’t heard of them before, you should read Eric Bidelman’s excellent introduction to them, but they’re pretty self explanatory with a bit of code. For example the following is how a jQuery UI dialog works in my proof-of-concept web components port: <link rel="import" href="ui-dialog.html"> <ui-dialog title="Hello World"></ui-dialog> The cool thing here is not what
CSS has a well supported mechanism for applying changes only when the user is printing a document, print stylesheets. They allow you to alter the presentation of a web page for the printer by applying rules that will only be interpreted for printing. This is great for common tasks like hiding non-essential content, using more print friendly typography, and adjusting the layout to better suit the s
Styling form elements is a pain point when developing web applications. Historically, web developers have had to accept the form controls the browser provided with little hope of customization. However, web rendering engines are increasingly adding hooks through pseudo-elements to give authors some control over the display. While all of these pseudo-elements are rendering engine specific (and ther
このページを最初にブックマークしてみませんか?
『www.tjvantoll.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く