@Ludovic Let me recap please before we loose everyone else on this honourable forum, if I may ?
1. we advocate (something like) jQery dynamic composition. A mechanism by which jQ is fully assembled *each time* the page is loaded. Example: // the single file needed <script > jquery.2.compositor.js</script> 2. dynamic jQ composition (assembly) is done by (what we know today) as jQuery Support object. each Support(ed) feature corresponds (roughly) to one part of jQ which is in one js file. if a feature is supported one js file is loaded, if not the other js file is loaded which presumably contains a workaround. Example : if ( box_model_is_supported() ) get_script_for_box_model( true ) ; // one js file else get_script_for_box_model( false ) ; // different js file 3. The (unavoidable) differentiation between IE and "the rest" is solved outside ot this mechanism, and inside these (future) jQ parts (aka js files). Presumably by the means of jScript conditional compilation. Please discuss ;o) --DBJ On Aug 20, 9:11 pm, ludovic <ludothebe...@gmail.com> wrote: > There is a way of creating separted files : to create a php parser > which detects jQuery.support tests, and generate the appropriated > file. > Here is a little example I create on-the-fly : > > $ie7= array( > 'boxModel' => true, > 'goodBrowser' => false > ); > > function generateFile( $path, $browser ) { > > $content = file_get_contents( $path ); > foreach( $browser as $support ) { > // will be jQuery.support.boxModel, then > jquery.support.goodBrowser > $support = 'jQuery.support.' . $support; > > // We must implement the executeTest function > $content = executeTest( $support, $content ); > > } > > return $content; > > } > > file_put_contents( 'jquery-ie7.js', generateFile( 'jquery.js', > $ie7 ) ); > > Regards > Ludovic --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---