The internets are serious business. When you’ve got questions, they’ve got answers… Is Lost on TV? Is it a rerun? What year is it? 2009? 2010? Has the LHC destroyed the world yet? Is Abe Vigoda still alive? Is it MFBT?
Which brings us to the question frequently asked by Mozilla developers. Is the tree green? Ta-da:
Some random factoids about isthetreegreen.com…
- It’s using a cross-site XMLHttpRequest to fetch the tree status from Tinderbox. This is a neat way to generate the answer in the browser (instead of scraping the status from a cron script on my webserver), but it means you’ll need a recent browser (like Firefox 3.1!) which supports this.
- It’s surprisingly snappy. The HTML is about 7K, and the XHR status is about 2K. Compare that to the normal Tinderbox page, which weighs in around 220K.
- The page polls the Tinderbox status every 2 minutes and updates the displayed status. The first time the state transitions from not-green to green, it will trigger an alert(). I think this will be rather useful if you’re waiting for the tree to turn green before checking in a patch.
- It doesn’t check if the tree is open or closed. (Yet?)