Load inline resources lazily (on render, not on init)

Fixes #644.