If "Optimize javascript" is enabled on admin/settings/performance while you try to use ui tabs (jquery_ui_add('ui.tabs') ) than the whole JS fails, no JS run.

Attached a simple module which fails if "Optimize javascript" setting is enabled.

CommentFileSizeAuthor
tabstest.zip749 bytesedgarpe

Comments

edgarpe’s picture

Dug a little deeper: the problem only applies to Drupal 6.9. D6.8 is fine.

mfer’s picture

What happens in 6.9? Is the JS file included in the page but break? Does it not include the JS file?

A diff of common.inc between 6.8 and 6.9 can be found at http://cvs.drupal.org/viewvc.py/drupal/drupal/includes/common.inc?r1=1.7...

There is nothing here referenced by or part of the JavaScript handling functions.

edgarpe’s picture

Status: Active » Closed (fixed)

Sorry, I made a mistake. It applies form D6.0 to D6.9 and it's even this modules issue. The thing is as simple as that:

Drupals javascript optimizations feature is incompatible with most jQuery UI components (ui.tabs.js for example). Using optimization feature with ui.tabs.js breaks the whole generated Javascript file.