Git Product home page Git Product logo

bootstrap-without-jquery's Introduction

#Bootstrap without jQuery

Introduction

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.

Coverage

Bootstrap 2 and 3

  • Collapsible elements (e.g. "hamburger" menu icon)
  • Dismissable alert boxes
  • Dropdown menus

Demo

You can see the script in action in these simple demos:

Dependencies

Browser support

Bootstrap 2 version so far tested in the following browsers. (Bootstrap 3 testing is on the todo list)

Works

  • Android 2.3
  • Android 4.1
  • Chrome 26
  • Firefox 20
  • Firefox Mobile 20
  • Internet Explorer 8, 9 & 10
  • iOS 3
  • Kindle 3
  • Opera 12.15
  • Opera Mini 7.5
  • Opera Mobile 12.10

Doesn't work

  • Nintendo DS/DSi
  • Nintendo Wii

Notes

  • Alert close is intermittent in Android 2.3
  • In Chrome, 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.

License

Licensed under the MIT license.

bootstrap-without-jquery's People

Contributors

figgyc avatar kachar avatar tagawa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.