HTML5 Data Bindings Support Product Page

Answered

Keeping JavaScript at the bottom of the document

Asked 14 Nov 2013 22:25:00
1
has this question
14 Nov 2013 22:25:00 Ben Pleysier posted:
I like keeping the JS at the bottom of my document as you can see here www.accufire.com.au/youtube.php

Every time I load the document in DW, the JS is rearranged back to the top and a link to the jQuery library is reinstated. I am using the DW Template system and the template already has a link to jQuery.

Any chance to have this behaviour changed?

Replies

Replied 15 Nov 2013 13:39:44
15 Nov 2013 13:39:44 George Petrov replied:
Hi Ben,

Unfortunately critical js libraries like jQuery and the HTML5 Data Bindings for example, really need to be in the head as the rest of the page depends on them.

Currently we include all js libraries in the head also in the right order.

We are investigating however more flexible approaches using dynamic libraries loading techniques like AMD and RequireJS - but those will take some time to implement.

Greetings,
George

Reply to this topic