• Resolved shubhamvoxco

    (@shubhamvoxco)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Hi @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

    (@aguidrevitch)

    Can you please point me to the script / listener that fails to receive proper readyState?

    Thread Starter shubhamvoxco

    (@shubhamvoxco)

    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 and one on prod site which has the plugin enabled link

    Regards,
    Shubham Badhe

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Can you please check if v2.3.5 fixes the booking widget issue?

    Thread Starter shubhamvoxco

    (@shubhamvoxco)

    Hello,

    Yes, Update did fix it.

    Thanks for the quick support!

    Thanks and Regards,
    Shubham Badhe

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    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.