On 10/31/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Hi folks, >
> Due to performance issues I wouldn't want that auto-defer mechanism in > the core, but it would be a great help for starters. > > After seeing John's debug plugin, I think it should be possible to > implement this. I'm just not sure if it is really of any use. > > Your opinions? Already done: http://john.jquery.com/jquery/test/defer.html I finished it last week, or so - just never released it. It works like a charm - you never have to call $(document).ready(). The major problem, and the reason why I'll probably never add it to core, is that it completely breaks methods that return non-jQuery objects before the DOM is loaded. For example, this works fine: $("div").hide(); This dies, because it's expecting a return value (before there's a return value to retrieve): $("input").val(); So, feel free to mess around with it - just take it with a grain of salt. --John _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
