<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-14995055.post5405455238489960784..comments</id><updated>2009-08-12T08:10:03.995-04:00</updated><title type='text'>Comments on as simple as possible, but no simpler: Where should I define Javascript variables?</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.j15r.com/feeds/5405455238489960784/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14995055/5405455238489960784/comments/default'/><link rel='alternate' type='text/html' href='http://blog.j15r.com/2009/08/where-should-i-define-javascript.html'/><author><name>Joel Webber</name><uri>https://profiles.google.com/111111598146968769323</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-fiMv_Zyxto0/AAAAAAAAAAI/AAAAAAAAS-8/LUZJ460YO9A/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-14995055.post-5067850926373540190</id><published>2009-08-12T08:10:03.995-04:00</published><updated>2009-08-12T08:10:03.995-04:00</updated><title type='text'>Thanks, Mark. I had forgotten about that mess. Thi...</title><content type='html'>Thanks, Mark. I had forgotten about that mess. This is precisely the kind of thing that I think makes it so difficult to reason about Javascript and browser performance a priori. If you don&amp;#39;t measure it, you&amp;#39;re probably wrong :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14995055/5405455238489960784/comments/default/5067850926373540190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14995055/5405455238489960784/comments/default/5067850926373540190'/><link rel='alternate' type='text/html' href='http://blog.j15r.com/2009/08/where-should-i-define-javascript.html?showComment=1250079003995#c5067850926373540190' title=''/><author><name>joel.</name><uri>http://www.blogger.com/profile/18063235960332996797</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.j15r.com/2009/08/where-should-i-define-javascript.html' ref='tag:blogger.com,1999:blog-14995055.post-5405455238489960784' source='http://www.blogger.com/feeds/14995055/posts/default/5405455238489960784' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1294652494'/></entry><entry><id>tag:blogger.com,1999:blog-14995055.post-1100837266465209889</id><published>2009-08-11T18:59:17.593-04:00</published><updated>2009-08-11T18:59:17.593-04:00</updated><title type='text'>&amp;gt; in any sane world, (window[name]) 
&amp;gt; would...</title><content type='html'>&amp;gt; in any sane world, (window[name]) &lt;br /&gt;&amp;gt; would be the same as (name), since &lt;br /&gt;&amp;gt; they do precisely the same thing. &lt;br /&gt;&amp;gt; But we&amp;#39;re not in a sane world here, &lt;br /&gt;&amp;gt; are we?&lt;br /&gt;&lt;br /&gt;Although these are equivalent according to the EcmaScript specs (both ES3 and ES5), it is not what most browsers do nor what the current html5 draft specifies. See&lt;br /&gt;&lt;br /&gt;&lt;a href="https://mail.mozilla.org/pipermail/es-discuss/2009-July/009655.html" rel="nofollow"&gt;The global object in browsers&lt;/a&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14995055/5405455238489960784/comments/default/1100837266465209889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14995055/5405455238489960784/comments/default/1100837266465209889'/><link rel='alternate' type='text/html' href='http://blog.j15r.com/2009/08/where-should-i-define-javascript.html?showComment=1250031557593#c1100837266465209889' title=''/><author><name>MarkM</name><uri>http://www.blogger.com/profile/05982836560506229349</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.j15r.com/2009/08/where-should-i-define-javascript.html' ref='tag:blogger.com,1999:blog-14995055.post-5405455238489960784' source='http://www.blogger.com/feeds/14995055/posts/default/5405455238489960784' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-442737972'/></entry></feed>
