Title: document.readystate is always &#8216;loading&#8217;
Last modified: July 27, 2021

---

# document.readystate is always ‘loading’

 *  Resolved [shubhamvoxco](https://wordpress.org/support/users/shubhamvoxco/)
 * (@shubhamvoxco)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/)
 * Hello there,
    I am facing this issue where the document.readyState is always ‘
   loading’, which leads to some scripts not loading as some have condition to load
   after readyState is ‘complete’. Same can be verified after running document.readyState
   on console. I have verified that it is coming from this plugin after disabling
   the plugin for time being. Is this a bug?
 *  Thanks for creating such a wonderful plugin. I would suggest to add functionality
   to exclude some pages from optimization from UI.
 * Thanks and Regards,
    Shubham Badhe
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdocument-readystate-is-always-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * (@aguidrevitch)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14705431)
 * Hi [@shubhamvoxco](https://wordpress.org/support/users/shubhamvoxco/),
 * Thank you for reporting! That’s definitely a bug. The plugin sets readyState 
   to ‘loading’ while loading delayed scripts to mimic default browser behaviour,
   but in the end, readyState gets changed to ‘complete’, and appropriate event 
   is dispatched to everyone listening. I will get back to you soon
 * WBR,
    Alex
 *  Plugin Author [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * (@aguidrevitch)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14705452)
 * Can you please point me to the script / listener that fails to receive proper
   readyState?
 *  Thread Starter [shubhamvoxco](https://wordpress.org/support/users/shubhamvoxco/)
 * (@shubhamvoxco)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14705559)
 * Hello,
 * I found this while trying to integrate calendly time slot booking widget on one
   of my page and that it a sitewide issue. Same can be verified using the test 
   page on staging site which has the plugin disabled [link](https://staging-voxcocom.kinsta.cloud/book-demo-hstest/)
   and one on prod site which has the plugin enabled [link](https://www.voxco.com/book-demo-hstest/)
 * Regards,
    Shubham Badhe
 *  Plugin Author [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * (@aguidrevitch)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14705960)
 * Can you please check if v2.3.5 fixes the booking widget issue?
 *  Thread Starter [shubhamvoxco](https://wordpress.org/support/users/shubhamvoxco/)
 * (@shubhamvoxco)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14706236)
 * Hello,
 *  Yes, Update did fix it.
 *  Thanks for the quick support!
 * Thanks and Regards,
    Shubham Badhe
 *  Plugin Author [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * (@aguidrevitch)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14706320)
 * Thats awesome! Thank you for the report!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘document.readystate is always ‘loading’’ is closed to new replies.

 * ![](https://ps.w.org/wp-meteor/assets/icon.svg?rev=2452791)
 * [WP Meteor Website Speed Optimization Addon](https://wordpress.org/plugins/wp-meteor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-meteor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-meteor/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-meteor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-meteor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-meteor/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Aleksandr Guidrevitch](https://wordpress.org/support/users/aguidrevitch/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/document-readystate-is-always-loading/#post-14706320)
 * Status: resolved