From: Robert Kaiser Date: Thu, 1 Dec 2016 19:14:44 +0000 (+0100) Subject: support defer and sanc for added JS files X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=8afa2e61362e19841a938cec083ae51166216110;ds=sidebyside support defer and sanc for added JS files --- 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