It would be nice forSubmitted by D. Pelsmaeker on 6 March 2012 at 14:10
<script>tag, for example:
What you propose is a workaround, not a solution. A quick search on the internet reveals (1, 2) that the general consensus is that scripts should always be put last in the website's body (for performance reasons), which is a detail that WebDSL should abstract.
The only reason that you'd want to put a script somewhere else is when the script has to execute at exactly that point in the website's HTML, which is also not something
HEAD. But this last thing might be better abstracted into an
The script tag is indeed a workaround,
includeJSin its current form has some problems, most importantly it's lacking the ability to specify order of includes and it doesn't work properly with ajax http://yellowgrass.org/issue/WebDSL/443.
Log in to post comments