不使用 jQuery 的 Twitter Bootstrap
#Bootstrap without jQuery
** Note: This is no longer maintained. For a more up-to-date version please take a look at bootstrap.native
A lightweight script to replace jQuery for simple interactions when using Twitter Bootstrap.
Bootstrap requires jQuery for some components such as dropdowns, alerts and the little "hamburger" icon that triggers a collapsible menu. While jQuery is an excellent cross-browser framework, it can be overkill if it's only used for displaying and hiding things. Of course, if a project already uses jQuery then there's no problem, but if not here's a script to replace jQuery and some of the Bootstrap plugin scripts. Using this should reduce download size and speed up loading time for your users.
You can see the script in action in these simple demos:
Bootstrap 2 version so far tested in the following browsers. (Bootstrap 3 testing is on the todo list)
onblur doesn't fire when attached to button elements. This affects the dropdown menus so please use a elements instead for these.I'd really appreciate a quick comment on whether it works in your browser or not.
Licensed under the MIT license.
暂无开放 Issues,或尚未同步最近议题。