[development] Ordering of javascript includes in $head tag

Nick Lewis nick at smartcampaigns.com
Fri Jan 27 20:21:44 UTC 2006

Chris Cook wrote:

>On 1/26/06, Nick Lewis <nick at smartcampaigns.com> wrote:
>>The two javascript includes apparently need to come before misc/drupal.js for the nifty corners technique to work. Any ideas on a cleaner
>>way to include the javascript in the right order without breaking module's ability to extend the template?
>I'm probably missing something but why don't use just put the
>following in your theme:
>  <title><?php print $head_title ?></title>
>  <script type="text/javascript" src="themes/curved_slate/nifty.js"></script>
>  <script type="text/javascript" src="themes/curved_slate/layout.js"></script>
>  <?php print $head ?>
>  <?php print $styles ?>
The issue is ordering -- the javascript inclusions don't work when 
placed in front of the drupal.js include. After talking with Ber, I'm 
beginning to think that using javascript to generate curves around 
certain div elements might be a good support module. That way, other 
themes could make use of the javascript. Who knows though... a big 
factor for me right now is 3 deadlines that are coming up which want 
"curvy" templates.

Nick Lewis


More information about the development mailing list