WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51812, comment 13


Ignore:
Timestamp:
12/22/2020 04:05:00 PM (2 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51812, comment 13

    initial v1  
    88Yeah, `document.onreadystatechange` can be used instead of "DOM ready", etc. Thinking it can look at the "property" `document.readyState`. Perhaps something like:
    99
    10 {{{js
     10{{{
    1111if ( document.readyState === 'complete' ) {
    1212    // Page is fully loaded.