From 8afa2e61362e19841a938cec083ae51166216110 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Thu, 1 Dec 2016 20:14:44 +0100 Subject: [PATCH] support defer and sanc for added JS files --- classes/document.php-class | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/classes/document.php-class b/classes/document.php-class index 1f4d8a2..3e39f0a 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -121,7 +121,7 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementJS() as a child of this document (see there for params) // NO return value! // - // public function appendJSFile($jsURL) + // public function appendJSFile($jsURL, [$defer], [$async]) // appends an ExtendedDocument::createElementJSFile() as a child of this document (see there for params) // returns the new child // @@ -189,8 +189,9 @@ class ExtendedDocument extends DOMDocument { // public function createElementJS($jsdata) // returns an ExtendedElement that is an HTML