Skip to content

Conversation

@MoonScript
Copy link
Contributor

Forms submitted with the novalidate attribute or without the data-remote attribute pay the penalty of unnecessary DOM scans to find blank input elements or file elements, respectively, which are never used. This change moves those DOM scans to a point in the logic where their result could actually be used.

@JangoSteve
Copy link
Member

Oh, nice catch. I'll pull this in tomorrow.

@MoonScript
Copy link
Contributor Author

@JangoSteve cool. Let me know when we can expect to see this pulled into the gem. Thanks!

@lucasmazza
Copy link
Contributor

@JangoSteve tests are green on my machine, do you think we can get this one merged?

lucasmazza added a commit that referenced this pull request Mar 12, 2014
Speed up submit for [novalidate] and [data-remote!=true] forms
@lucasmazza lucasmazza merged commit 61f0448 into rails:master Mar 12, 2014
@JangoSteve
Copy link
Member

Sorry about that. Yeah, this was good to pull in. Thanks @lucasmazza!

@JangoSteve
Copy link
Member

BTW, I don't know what the hell happened 5 months ago where I somehow just completely forgot to pull it in the next day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants