One way to enact the second solution is to use drupal_add_js to add the Ext
files in a preprocess function that checks whether you're on a page that
needs it.
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/6
In D7, you can also do this in hook_menu (or hook_menu_alter) and in the
Forms API using the '#attached' element, but that isn't available in D6.
Comment #2 on issue 160 by rich...@cyganiak.de: Ext JS breaks Drupal's
drag-and-drop widgets
http://code.google.com/p/neologism/issues/detail?id=160
There's a call to ext_load_library() in hook_init() for the
evocwidget_dynamic module. This is what causes ext to be included
everywhere. Removing that, and replacing it with a call to the same
function on only the appropriate pages (neologism_export_html() and
neologism_form_alter()) should actually solve this problem.