问题
A couple of months ago I was doing Javascript programming on the Facebook platform, on which the major frameworks such as Dojo, ExtJS, jQuery, Prototype, etc. don't necessarily work. Which led me to discovering a couple of frameworks that merely provide the CSS selection functionality, for possible porting, namely Sizzle (used inside jQuery) and Peppy.
I remember at the time also stumbling across a mini framework that primarily provided just the document/onready functionality that some of the major frameworks provide. However I don't remember these (well actually only one) the way I do Sizzle and/or Peppy. Can anybody point me to such a Javascript mini framework, for providing primarily just document/onready functionality? Thanks
回答1:
This was suggested to me yesterday by Cal Jacobson
http://ryanmorr.com/archives/ondomready-no-browser-sniffing
All the best
Matt
回答2:
Going to throw in my library: onready. I extracted this from jQuery.
来源:https://stackoverflow.com/questions/1074009/javascript-framework-that-primarily-provides-just-document-onready-functionality