Works fine as long as you don't want to generate new QR codes when you're offline. I have to admit, if you're intending to generate QR codes only online, the charts api is the better way to go, since it's more likely to have users with JavaScript disabled than users with image tags disabled g
https://chart.googleapis.com/chart?chs=150x150&cht=qr...
You can embed this into your webpages as images.