implement preload for online demo (Firefox OS app does not need it because it locally has resources)