Dev mode is now determined when dom is ready.