drupal_add_js('http://www.google.com/jsapi', array('type' => 'external'));
drupal_add_js('misc/ajax.js');

This can result in ajax.js being loaded before jsapi simply becaus jsapi is external.

CommentFileSizeAuthor
#1 advagg-2039297-1-fix-order-bug.patch1.98 KBmikeytown2

Comments

mikeytown2’s picture

StatusFileSize
new1.98 KB

Better test
drupal_add_js('http://www.google.com/jsapi', array('type' => 'external'));
drupal_add_js('misc/autocomplete.js');
drupal_add_js('misc/ajax.js', array('preprocess' => FALSE));
drupal_add_js('misc/tabledrag.js');
drupal_add_js('misc/tableselect.js');
drupal_add_js('alert("test");', array('type' => 'inline'));
drupal_add_js('misc/batch.js');

Following patch has been committed that fixes this bug for JS and CSS.

mikeytown2’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.