[IMPROVE] Messagebox fix performance#11686
Merged
Conversation
rssilva
suggested changes
Aug 7, 2018
Contributor
rssilva
left a comment
There was a problem hiding this comment.
Awesome! 🔥
One small change and I think that we are good to go!
| * http://github.com/jaz303/jquery-grab-bag/tree/master/javascripts/jquery.autogrow-textarea.js | ||
| */ | ||
| $.fn.autogrow = function(options) { | ||
| var shadow = $("div.autogrow-shadow"); |
Contributor
There was a problem hiding this comment.
Maybe we could add a TODO and investigate if there is a way to pass the container element to search this .autogrow-shadow class. Doing like this we are looking at the whole DOM.
Member
Author
There was a problem hiding this comment.
actually this code was a copy/paste thats why I'm not using >ES5 on code (just were I changed)
Member
Author
There was a problem hiding this comment.
and about the find, we can use body > .autogrow-shadow or use an id instead, but this code just runs "one time"(one time per opened room) so I dont think will change a lot, but I will change
Contributor
rssilva
approved these changes
Aug 8, 2018
2 tasks
Member
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


should close #10583