Skip to content

Commit

Permalink
change readyState condition
Browse files Browse the repository at this point in the history
  • Loading branch information
heidkaemper committed Jun 27, 2024
1 parent a937ba9 commit dc715b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observer/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Observer = {
start() {
if (document.readyState !== 'complete') {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => this.observe())

return
Expand Down

0 comments on commit dc715b9

Please sign in to comment.