[dokuwiki] New PR: JSINFO moved to <meta>

  • From: "fjf2002" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 13 Mar 2024 09:55:26 +0100 (CET)

Hi,

fjf2002 opened a new pull request at 
https://github.com/dokuwiki/dokuwiki/pull/4242:

JSINFO moved to a HTML <meta> tag, to allow a strict CSP.

Contributes to the discussion at #3788.

CAN work if there are no inline JavaScripts that instantly would need the 
JSINFO variable.

I have to admit already the DokuWiki default template has inline JavaScript; 
but does not use the JSINFO variable.

Let's put it this way: When you used an inline script in the past (that get 
executed instantly), you could not rely on neither´lib/exe/jquery.php` nor 
`lib/exe/js.php` (because these are external and deferred). Now the `JSINFO` 
variable gets added to that list, too.



Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

6ef9b4e0-e117-11ee-816f-ea225f19fd3e


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: JSINFO moved to <meta> - fjf2002