Topics /

Web & Frontend

The most popular blog posts about web & frontend on Hacker News. 262 posts.

2011
256

Understanding JavaScript function invocation and "this"

Over the years, I've seen a lot of confusion about JavaScript function invocation. In particular, a lot of people have complained that the semantics of this in function invocations is confusing. In my opinion, a lot of this confusion is cleared up by understanding the core function invocation primitive,

257

Public key pinning coming in Chrome 13

Starting with Chrome 13, we'll have HTTPS pins for most Google properties. This means that certificate chains for, say, https://www.google.com , must include a whitelisted public key. It's a fatal error otherwise. Credit goes to my colleague, Chris Evans, for much of this.

258

Happy Run Some Old Web Browsers Day!

Happy Run Some Old Web Browsers Day! In honor of the ten year anniversary of the Mozilla project, home.mcom.com, the Internet Web Site of the Mosaic Communications Corporation, is now back online. It took some doing. There is comedy. First, the fun stuff: Until now, home.mcom.com and all URLs under it just redirected…

261

The protocol-relative URL

Update 2014.12.17: Now that SSL is encouraged for everyone and doesn’t have performance concerns , this technique is now an anti-pattern . If the asset you need is available on SSL, then always use the https:// asset.