This project is archived and is in readonly mode.

#5876 ✓stale
Christiaan Van den Poel

optimize javascript_include_tag to skip duplicate sources

Reported by Christiaan Van den Poel | October 28th, 2010 @ 02:07 PM

When you have defined multiple javascript expansions with perhaps some common sources, at the end, you can have multiple script-tags to the same sources, which is unnecessary.

This patch includes a change where an extra option (:unique, false by default) is added to the javascript_include_tag method.

When you specify :unique => true, any duplicate source will be removed.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages