New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix setting image height/width from metadata #4853
Conversation
Test failed, maybe you can re-run it (there were false positive lately...) |
Yup, it's a bit baffling because tests are all passing locally. I'll look into it in a bit. |
Yes, I suppose that, because I read the code and it seems good to me... |
Why use the native DOM |
Why use jQuery's |
Because it is confusing when all the rest of our code uses jQuery for On Mon, Jan 27, 2014 at 10:53 AM, Matthias Bussonnier <
Brian E. Granger |
Matthias made this change as part of his load-performance PR, I didn't change anything about that. It avoids an unnecessary query when there is known to be only one relevant element. I'm not sure how much of an effect it has. |
If |
I just did a performance test, and there seems to be no difference whatsoever between attr and setAttribute on one element (it's at most a single digit millisecond-level difference), so I will switch it back to attr. |
when appending images. This was an optimization with no apparent performance benefit.
tests are passing now. |
+1 on merging. |
fix setting image height/width from metadata
fix setting image height/width from metadata
Needed updating after some recent metadata handling changes.