How To Load Js Files After Embedded Script?

Hi,

I have defined a package of clientScript with a bunch of JS files (&CSS) in the main config file

but I want that these files will load after an embedded script.

How can I do that?

sample of what I need:




<html>

 <head>

  <script>

   //some embedded script

  </script>


  <!-- All the other scripts from the package will be here -->


 </head>

...



Thanks!

the solution I found was kind of a hack:

The scripts are being outputed AFTER the <title> tag - so I embbeded my inline script before that




<html>

 <head>

  <script>

   //some embedded script

  </script>


  <title>page title</title>


  <!-- All the other scripts from the package will be here -->


 </head>

...



lol - I’ve done the same before.

:) it works but I really would rather use a solution that is less hacky