From 0b6a6df1e7bbb449a9de665d7f8e78301c6a0d72 Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Sat, 6 Jul 2024 10:25:42 -0700 Subject: [PATCH] Added usage, alternative patterns of onloadAdd --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 86c8364..185cb06 100644 --- a/README.md +++ b/README.md @@ -267,8 +267,8 @@ Looking for stuff [we recommend doing in vanilla JS](#no-surreal)? * 🔥 `onloadAdd(_ => { alert("loaded!"); })` * 🔥 `` * Execute after the DOM is ready. Similar to jquery `ready()` - * Adds function to `window.onload` to prevent overwrites of `window.onload` and predictable sequential loading. - * Alternative patterns + * Add to `window.onload` while preventing overwrite of `window.onload` and predictable sequential loading. + * Alternatives: * Skip missing elements using `.?` example: `me("video")?.requestFullscreen()` * Place `