Reordering Javascripts added via the Resource Manager


#1

When including Javascripts in the of your document that need to be in a specific order, we recommend manually adding references like this:

<script type="text/javascript" src="${resourcesFolderName}/jquery.min.js"></script>
<script type="text/javascript" src="${resourcesFolderName}/hammer.js"></script>
<script type="text/javascript" src="${resourcesFolderName}/jquery.hammer.js"></script>
<script type="text/javascript" src="${resourcesFolderName}/jquery.specialevent.hammer.js"></script>

If you check 'Include in document ’ while selecting a JS file in the resources library, the order of Javascripts cannot be configured. Many Javascript libraries (such as hammer.js) require that Jquery be loaded first.