elkarte/Elkarte — pull request #1155 by Spuds (2013-12-11 19:44:25+00:00)
Title: Update the way the inline scripts are output

This is a simple update that I think makes some sense.

Now we output our `````` then our `````` ... this just outputs them together inside a single script tag ``````, there was no reason for the separation and it causes an extra http call. I did add an array_map trim just to get the indentation right(er)

I also changed things to an implode from a for-each, since all we are doing is outputting, no need to loop over something

The only thing I did not do is run the minify on the inline script, I don't think its worth it (overhead vs saving just a few bytes here) The real savings is minimizing the number of individual script blocks.