Hi Michel,
This is a note to let you know that I am depreciating the $window.jsVars global in favor of a $window.pwGlobals which contains a complex nested set of variables which are being used across many functions.
Since this data is currently being injected directly into the header, which poses some surface level security risks, mainly by making the structure obvious to snoopers, my plan is to bury it under one layer by including a PHP file as a JS document type which defines this, so it's included as an external <script>. Though until that happens, you can find it in the header.
I'll keep jsVars in there for now, although will gradually be refactoring in favor of pwGlobals.
The general anatomy is like this : (still in development)
Hi Michel, This is a note to let you know that I am depreciating the
$window.jsVars
global in favor of a$window.pwGlobals
which contains a complex nested set of variables which are being used across many functions.Since this data is currently being injected directly into the header, which poses some surface level security risks, mainly by making the structure obvious to snoopers, my plan is to bury it under one layer by including a PHP file as a JS document type which defines this, so it's included as an external
<script>
. Though until that happens, you can find it in the header.I'll keep
jsVars
in there for now, although will gradually be refactoring in favor ofpwGlobals
.The general anatomy is like this : (still in development)