{"id":12,"date":"2007-01-05T10:56:24","date_gmt":"2007-01-05T15:56:24","guid":{"rendered":"https:\/\/billhiggins.us\/weblog\/2007\/01\/05\/matt-kruse-nails-it-wrt-ie-and-closures\/"},"modified":"2007-01-05T10:56:24","modified_gmt":"2007-01-05T15:56:24","slug":"matt-kruse-nails-it-wrt-ie-and-closures","status":"publish","type":"post","link":"https:\/\/billhiggins.us\/blog\/2007\/01\/05\/matt-kruse-nails-it-wrt-ie-and-closures\/","title":{"rendered":"Matt Kruse nails it w\/r\/t IE and closures"},"content":{"rendered":"<p>Related to <a href=\"https:\/\/billhiggins.us\/weblog\/2007\/01\/04\/ie-team-addressing-the-symptoms\/\">yesterday&#8217;s post<\/a>, I just caught up on the comments to Peter Gurevich&#8217;s (MS IE Performance PM) <a title=\"Peter Gurevich (Microsoft) on JS code inefficiencies\" href=\"http:\/\/blogs.msdn.com\/ie\/archive\/2007\/01\/04\/ie-jscript-performance-recommendations-part-3-javascript-code-inefficiencies.aspx\">guidance<\/a> to avoid using <a title=\"Wikipedia: Closure (Computer Science)\" href=\"http:\/\/en.wikipedia.org\/wiki\/Closure_%28computer_science%29\">closures<\/a> in IE.  <a href=\"http:\/\/www.mattkruse.com\/\">Matt Kruse<\/a> had a perfect, concise response which I feel compelled to quote here verbatim:<\/p>\n<div class=\"commentsbody\">\n<blockquote><p>Closures don&#8217;t cause memory leaks.<\/p>\n<p>Browsers that have garbage collection bugs (IE6) and continue to retain those bugs in new versions (IE7) cause memory leaks.<\/p>\n<p>Closures are an extremely powerful and useful programming technique. It&#8217;s unfortunate that you would recommend against their use simply because your browser has a bug that causes a memory leak.<\/p>\n<p>A huge amount of time has been spent by the js community to detect, resolve, and work around these IE memory leaks. It&#8217;s too bad this was required, and will continue to be required as long as MS refuses to fix the problem.<\/p>\n<p>Hopefully IE&#8217;s market share will continue to drop and we can begin to ignore these memory leaks because every other browser out there handles closures just fine.<\/p><\/blockquote>\n<\/div>\n<p>+1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related to yesterday&#8217;s post, I just caught up on the comments to Peter Gurevich&#8217;s (MS IE Performance PM) guidance to avoid using closures in IE. Matt Kruse had a perfect, concise response which I feel compelled to quote here verbatim: Closures don&#8217;t cause memory leaks. Browsers that have garbage collection bugs (IE6) and continue to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,13],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-ajax","category-microsoft"],"_links":{"self":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/billhiggins.us\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}