From dea66a195841cfd505c05735f01c4d2c5247a7e8 Mon Sep 17 00:00:00 2001 From: David D Lowe Date: Fri, 12 Jul 2024 15:56:14 +0100 Subject: [PATCH] Add invocation of ready function This makes it equivalent to the JQuery code. --- src/comparisons/events/ready/ie8.js | 1 + src/comparisons/events/ready/ie9.js | 1 + src/comparisons/events/ready/modern.js | 1 + 3 files changed, 3 insertions(+) diff --git a/src/comparisons/events/ready/ie8.js b/src/comparisons/events/ready/ie8.js index d1e0d2da..b5f6c5cf 100644 --- a/src/comparisons/events/ready/ie8.js +++ b/src/comparisons/events/ready/ie8.js @@ -9,3 +9,4 @@ function ready(fn) { }); } } +ready(function () {}); diff --git a/src/comparisons/events/ready/ie9.js b/src/comparisons/events/ready/ie9.js index 8117001f..e5677914 100644 --- a/src/comparisons/events/ready/ie9.js +++ b/src/comparisons/events/ready/ie9.js @@ -9,3 +9,4 @@ function ready(fn) { document.addEventListener('DOMContentLoaded', fn); } } +ready(function () {}); diff --git a/src/comparisons/events/ready/modern.js b/src/comparisons/events/ready/modern.js index 89ded8c8..4bb57f65 100644 --- a/src/comparisons/events/ready/modern.js +++ b/src/comparisons/events/ready/modern.js @@ -5,3 +5,4 @@ function ready(fn) { document.addEventListener('DOMContentLoaded', fn); } } +ready(() => {});