Rails web framework dumps jQuery

Rails web framework dumps jQuery

The venerated library is being removed in favor of a new Ruby gem that uses vanilla JavaScript


Builders of Ruby on Rails, the Web development framework that has been around for more than 12 years, have removed the popular jQuery JavaScript library from the default Rails stack in favor of a Ruby gem using vanilla JavaScript.

Thusly, jQuery is not a Rails dependency anymore. The gem, rails-ujs, was created by developer Dangyi Liu as part of the Google Summer of Code event.

Rails founder David Heinemeier Hansson said that jQuery simply is not as critical for Rails as it use to be. "JQuery was used to pave over differences in browsers that no longer exist to anywhere near the same degree any more," he noted. "Rails-ujs just uses regular JavaScript for a built-in features in Rails we have that rely on JavaScript."

Rails has a number of features, like data-confirm, which asks users to confirm an action before they complete it, that use JavaScript under the hood. A pull request has been filed in GitHub to remove jquery-rails from new applications and provide rails-ujs through Action View.

For years, jQuery has been a staple of the Web, handling such tasks as HTML, document traversal and manipulation, and event handling. It's used by 96.4 percent of websites whose library is known, according to W3techs, which surveys usage of Web technologies.

Rails, meanwhile, has been seen as having lost some steam itself in favor of technologies such as Node.js. and Angular.js. The current release is Rails

Follow Us

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.


ARN Innovation Awards 2022

Innovation Awards is the market-leading awards program for celebrating ecosystem innovation and excellence across the technology sector in Australia.

EDGE 2022

EDGE is the leading technology conference for business leaders in Australia and New Zealand, built on the foundations of collaboration, education and advancement.

Show Comments