4 ms·
Here's a simpler way. Put this in your htaccess file: AddHandler server-parsed .js then add: (function(query_string){ ... })("<!--#echo var="
by geocar 16y ago
Here's a simpler way. Put this in your htaccess file:
AddHandler server-parsed .js
then add:
(function(query_string){
...
})("<!--#echo var="QUERY_STRING" -->");
around your script. This obviously has problems with caching, but it doesn't have the problems addressed with those "heavy loads" that you have with PHP et al.
- foobar2k 16y agoThe beauty of doing this statically entirely in javascript is that you can serve the js file from anywhere, including s3 for example.
- geocar 16y agoThe beauty of doing this with SSI is that you can include the same script multiple times, but with different parameters, and get: different effects.
- grez 16y agoHoly XSS injection, Batman!
- geocar 16y agoQUERY_STRING isn't decoded. What am I missing here?