[wp-trac] [WordPress Trac] #48601: Twenty Twenty: document.body is null
WordPress Trac
noreply at wordpress.org
Sat Nov 16 09:20:41 UTC 2019
#48601: Twenty Twenty: document.body is null
---------------------------+---------------------
Reporter: quicoto | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3.1
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+---------------------
Comment (by acosmin):
@poena @ianbelanger The `document.body` might be null because the script
is loaded asynchronously in the head section.
That script should be loaded in some way when the dom is ready, somewhere
in
https://github.com/acosmin/twentytwenty/blob/daf8bc9f7bd414c17f0dc72e12552495f62fc76c/assets/js/index.js#L764-L771
I didn't test it :) someone should look into it :D + I hate trac
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48601#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list