Yahoo! has released the phploader that calculates the dependencies and load very few js which substantially increases the speed of loading the editor. supporting this is rather easy. can the following changes be made to the yui_editor.module

1. include in the documentation that the phploader must be downloaded and extracted in the "yui" module (for benefit of other widgets as well)

2. include in the beginning of the yui_editor.module

$lpath = drupal_get_path('module','yui');
include_once $lpath . '/phploader/phploader/loader.php'; 

3. Replace the existing

function yui_editor_load_libs(){
....
}

with the following

 function yui_editor_load_libs() {
	$version=variable_get('yui_version','2.8.0r4');
	$loader = new YAHOO_util_Loader($version); 
	 
	//Turn off rollups 
	$loader->allowRollups = false; 

	//Enable combo handling 
	$loader->combine = true; 
	 
	//Specify YUI components to load 
	$loader->load("editor"); 
	 
	//Output the tags (this call would most likely be placed in the document head) 
	drupal_set_html_head($loader->tags());
}