Added check for interactive DOM readyState