bgrins/devtools-snippets — pull request #1 by yawboakye (2013-06-08 20:46:15+00:00)
Title: There's a performance gain in using the element property (s.src) over se...

...tAttribute

Check if `src` exists as property of the element type and it's actually a of type string. If so we can directly assign our src string. Otherwise we use `setAttribute`