Home > rack-unscripted

rack-unscripted

Rack-unscripted is a project mainly written in Ruby, based on the MIT license.

Middleware for adding a warning to a page for users who do not have JavaScript enabled.

= Rack::Unscripted

This is a small piece of Rack middleware that will append a message to your HTML warning a user that they need to enable JavaScript in order to properly view your site.

The Rack middleware will append a

right after the opening body tag, but hide it via a CSS directive that is written by JavaScript in the section. This prevents any flashing that can happen by merely hiding the element via JS directly. We don't use the
Previous:ftv-web