HTMLでの外部リソース指定にプロトコルがいらない件

以下の記事を見て省略できるってことを知り驚いた。

http://detarame.moo.jp/2012/08/07/google%E3%81%8C%E6%8E%A8%E8%96%A6%E3%81%99%E3%82%8Bhtml%E3%81%A8css%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E6%96%B9%E6%B3%95/
http://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml

Google HTML/CSS Style Guideの[Protocol]の[Omit the protocol from embedded resources.]の箇所。

<!-- Not recommended -->
<script src="http://www.google.com/js/gweb/analytics/autotrack.js"></script>
<!-- Recommended -->
<script src="//www.google.com/js/gweb/analytics/autotrack.js"></script>
/* Not recommended */
.example {
  background: url(http://www.google.com/images/example);
}
/* Recommended */
.example {
  background: url(//www.google.com/images/example);
}

マジか。httpからhttpsへの変更、またはその逆で以前修正していたことを思い出しちょっと悲しくなった。
上記リンクではその他にも有能なtipsが載っている。