From fb985321f2a3f2ea7c8cac35739af4f5b6c1dd34 Mon Sep 17 00:00:00 2001 From: Johannes Reiter Date: Tue, 25 Feb 2025 15:10:17 +0100 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index baca187..f6a9eb0 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,12 @@ class Bootstrap { $this->encore->enqueue('app', 'main', []); } + + public function enqueue_assets_async() + { + //WP 6.3 introduced the possibility to add loading strategies, if the "in_footer" key gets passed an array + $this->encore->enqueue('some-js', 'some-handle', ['in_footer' => ['in_footer' => true, 'strategy' => 'async'] ] ); + } } ```