throw error when page is loaded without preloading

Lets you see what you forgot to preload instead of failing silently.