Re: [WSG] Major memory leaking in IE
Hi Try looking at Drip, an IE memory leak detector: http://www.outofhanwell.com/ieleak/index.php?title=Main_Page (first result in Google) https://ieleak.svn.sourceforge.net/svnroot/ieleak/trunk/drip/docs/index.html Thanks James On Thu, Dec 3, 2009 at 9:39 AM, Mads Erik Forberg wrote: > Yeah, me to.. But to answer your other question, it runs slower over time. > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Major memory leaking in IE
Yeah, me to.. But to answer your other question, it runs slower over time. Kind regards, Mads Den 02.12.2009 23:31, skrev Karl Lurman: I suspect that the html method would be faster... Karl On Thu, Dec 3, 2009 at 9:24 AM, Mads Erik Forberg wrote: Thank you for your all your tips! Will look into some of the links tomorrow. I know the difference between replaceWith and html, but which is faster? Kind regards, Mads Den 02.12.2009 22:41, skrev Karl Lurman: When you say memory leak, what do you mean? Are you saying it just runs slower and slower over time, or are you saying that it is just slow in IE? Also, I am getting an error in IE7... Google is your friend For info on difference between replaceWith and html jQuery methods: http://stackoverflow.com/questions/730916/whats-the-difference-between-jquerys-replacewith-and-html Be careful with anonymous functions and event handlers: $('#button').click(function(){ ... blargh }); In some circumstances, this is better: function blargh() { ... click event stuff } $('#button').click(blargh) Now, blargh is declared only once and evaluated the same... You have to be careful with 'this' though... Couple of interesting articles: http://www.communitymx.com/content/article.cfm?cid=4E137 http://www.sitepoint.com/blogs/2009/11/12/google-closure-how-not-to-write-javascript/ Karl On Thu, Dec 3, 2009 at 12:23 AM, Mads Erik Forberg wrote: Event delegation helped me alot, still some tweaks I can do with that. But yeah, splitting data in to smaller chunks would probably help. Also I think the jQuery.fn.replaceWith method is a bit slow in IE, maybe try to use jQuery.fn.html() instead. Does anyone have experience with which method is the fastest when replacing HTML with jQuery? Kind regards, Mads Den 02.12.2009 14:09, skrev i...@eyemaxstudios.net: Interesting, I've had similar problems all the way through each IE incarnation, I had a quick look at your example, with no luck, but then I didn't test it in IE. You would think M$ would have been able to fix this problem by now, as it looks like it's a similar problem as I've always experienced, but was able to get around it by splitting data up into smaller chunks, and renaming vars to single chars, and removing white space which also helps speed the code up and reduce file size. Regards, StudioJunkyard.com Mads Erik Forberg wrote: Hello, can anyone help me debug the major memory leakage in IE on this page; http://www.prisguide.no/kategorier/mobiltelefon It seems to be the JavaScript when rendering new results after selecting a filter. I have tweaked it a bit, but seems to be very messy in IE. Runs with the jQuery 1.3.2 JS-lib. PS: Don't worry about IE6, we don't support it. :) It's just IE7 and IE8. Kind regards, Mads *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org **
Re: [WSG] Major memory leaking in IE
I suspect that the html method would be faster... Karl On Thu, Dec 3, 2009 at 9:24 AM, Mads Erik Forberg wrote: > Thank you for your all your tips! Will look into some of the links tomorrow. > > I know the difference between replaceWith and html, but which is faster? > > > Kind regards, > Mads > > > Den 02.12.2009 22:41, skrev Karl Lurman: >> >> When you say memory leak, what do you mean? Are you saying it just >> runs slower and slower over time, or are you saying that it is just >> slow in IE? >> >> Also, I am getting an error in IE7... >> >> Google is your friend >> >> For info on difference between replaceWith and html jQuery methods: >> >> http://stackoverflow.com/questions/730916/whats-the-difference-between-jquerys-replacewith-and-html >> >> Be careful with anonymous functions and event handlers: >> $('#button').click(function(){ >> ... blargh >> }); >> >> In some circumstances, this is better: >> function blargh() { >> ... click event stuff >> } >> >> $('#button').click(blargh) >> >> Now, blargh is declared only once and evaluated the same... You have >> to be careful with 'this' though... >> >> Couple of interesting articles: >> http://www.communitymx.com/content/article.cfm?cid=4E137 >> >> >> http://www.sitepoint.com/blogs/2009/11/12/google-closure-how-not-to-write-javascript/ >> >> Karl >> >> On Thu, Dec 3, 2009 at 12:23 AM, Mads Erik Forberg >> wrote: >> >>> >>> Event delegation helped me alot, still some tweaks I can do with that. >>> But >>> yeah, splitting data in to smaller chunks would probably help. Also I >>> think >>> the jQuery.fn.replaceWith method is a bit slow in IE, maybe try to use >>> jQuery.fn.html() instead. >>> >>> Does anyone have experience with which method is the fastest when >>> replacing >>> HTML with jQuery? >>> >>> >>> >>> Kind regards, >>> Mads >>> >>> >>> Den 02.12.2009 14:09, skrev i...@eyemaxstudios.net: >>> Interesting, I've had similar problems all the way through each IE incarnation, I had a quick look at your example, with no luck, but then I didn't test it in IE. You would think M$ would have been able to fix this problem by now, as it looks like it's a similar problem as I've always experienced, but was able to get around it by splitting data up into smaller chunks, and renaming vars to single chars, and removing white space which also helps speed the code up and reduce file size. Regards, StudioJunkyard.com Mads Erik Forberg wrote: > > Hello, > can anyone help me debug the major memory leakage in IE on this page; > http://www.prisguide.no/kategorier/mobiltelefon > It seems to be the JavaScript when rendering new results after > selecting > a filter. I have tweaked it a bit, but seems to be very messy in IE. > Runs > with the jQuery 1.3.2 JS-lib. > > PS: Don't worry about IE6, we don't support it. :) It's just IE7 and > IE8. > > > > Kind regards, > Mads > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > *** > > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** >>> >>> >>> *** >>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >>> Help: memberh...@webstandardsgroup.org >>> *** >>> >>> >>> >> >> *** >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: memberh...@webstandardsgroup.org >> *** >> >> > > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > *** > > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Major memory leaking in IE
Thank you for your all your tips! Will look into some of the links tomorrow. I know the difference between replaceWith and html, but which is faster? Kind regards, Mads Den 02.12.2009 22:41, skrev Karl Lurman: When you say memory leak, what do you mean? Are you saying it just runs slower and slower over time, or are you saying that it is just slow in IE? Also, I am getting an error in IE7... Google is your friend For info on difference between replaceWith and html jQuery methods: http://stackoverflow.com/questions/730916/whats-the-difference-between-jquerys-replacewith-and-html Be careful with anonymous functions and event handlers: $('#button').click(function(){ ... blargh }); In some circumstances, this is better: function blargh() { ... click event stuff } $('#button').click(blargh) Now, blargh is declared only once and evaluated the same... You have to be careful with 'this' though... Couple of interesting articles: http://www.communitymx.com/content/article.cfm?cid=4E137 http://www.sitepoint.com/blogs/2009/11/12/google-closure-how-not-to-write-javascript/ Karl On Thu, Dec 3, 2009 at 12:23 AM, Mads Erik Forberg wrote: Event delegation helped me alot, still some tweaks I can do with that. But yeah, splitting data in to smaller chunks would probably help. Also I think the jQuery.fn.replaceWith method is a bit slow in IE, maybe try to use jQuery.fn.html() instead. Does anyone have experience with which method is the fastest when replacing HTML with jQuery? Kind regards, Mads Den 02.12.2009 14:09, skrev i...@eyemaxstudios.net: Interesting, I've had similar problems all the way through each IE incarnation, I had a quick look at your example, with no luck, but then I didn't test it in IE. You would think M$ would have been able to fix this problem by now, as it looks like it's a similar problem as I've always experienced, but was able to get around it by splitting data up into smaller chunks, and renaming vars to single chars, and removing white space which also helps speed the code up and reduce file size. Regards, StudioJunkyard.com Mads Erik Forberg wrote: Hello, can anyone help me debug the major memory leakage in IE on this page; http://www.prisguide.no/kategorier/mobiltelefon It seems to be the JavaScript when rendering new results after selecting a filter. I have tweaked it a bit, but seems to be very messy in IE. Runs with the jQuery 1.3.2 JS-lib. PS: Don't worry about IE6, we don't support it. :) It's just IE7 and IE8. Kind regards, Mads *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Major memory leaking in IE
When you say memory leak, what do you mean? Are you saying it just runs slower and slower over time, or are you saying that it is just slow in IE? Also, I am getting an error in IE7... Google is your friend For info on difference between replaceWith and html jQuery methods: http://stackoverflow.com/questions/730916/whats-the-difference-between-jquerys-replacewith-and-html Be careful with anonymous functions and event handlers: $('#button').click(function(){ ... blargh }); In some circumstances, this is better: function blargh() { ... click event stuff } $('#button').click(blargh) Now, blargh is declared only once and evaluated the same... You have to be careful with 'this' though... Couple of interesting articles: http://www.communitymx.com/content/article.cfm?cid=4E137 http://www.sitepoint.com/blogs/2009/11/12/google-closure-how-not-to-write-javascript/ Karl On Thu, Dec 3, 2009 at 12:23 AM, Mads Erik Forberg wrote: > Event delegation helped me alot, still some tweaks I can do with that. But > yeah, splitting data in to smaller chunks would probably help. Also I think > the jQuery.fn.replaceWith method is a bit slow in IE, maybe try to use > jQuery.fn.html() instead. > > Does anyone have experience with which method is the fastest when replacing > HTML with jQuery? > > > > Kind regards, > Mads > > > Den 02.12.2009 14:09, skrev i...@eyemaxstudios.net: >> >> Interesting, I've had similar problems all the way through each IE >> incarnation, I had a quick look at your example, with no luck, but then I >> didn't test it in IE. >> >> You would think M$ would have been able to fix this problem by now, as it >> looks like it's a similar problem as I've always experienced, but was able >> to get around it by splitting data up into smaller chunks, and renaming vars >> to single chars, and removing white space which also helps speed the code >> up and reduce file size. >> >> Regards, >> StudioJunkyard.com >> >> Mads Erik Forberg wrote: >>> >>> Hello, >>> can anyone help me debug the major memory leakage in IE on this page; >>> http://www.prisguide.no/kategorier/mobiltelefon >>> It seems to be the JavaScript when rendering new results after selecting >>> a filter. I have tweaked it a bit, but seems to be very messy in IE. Runs >>> with the jQuery 1.3.2 JS-lib. >>> >>> PS: Don't worry about IE6, we don't support it. :) It's just IE7 and IE8. >>> >>> >>> >>> Kind regards, >>> Mads >>> >>> >>> *** >>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >>> Help: memberh...@webstandardsgroup.org >>> *** >>> >> >> >> >> *** >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: memberh...@webstandardsgroup.org >> *** >> > > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > *** > > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Major memory leaking in IE
Event delegation helped me alot, still some tweaks I can do with that. But yeah, splitting data in to smaller chunks would probably help. Also I think the jQuery.fn.replaceWith method is a bit slow in IE, maybe try to use jQuery.fn.html() instead. Does anyone have experience with which method is the fastest when replacing HTML with jQuery? Kind regards, Mads Den 02.12.2009 14:09, skrev i...@eyemaxstudios.net: Interesting, I've had similar problems all the way through each IE incarnation, I had a quick look at your example, with no luck, but then I didn't test it in IE. You would think M$ would have been able to fix this problem by now, as it looks like it's a similar problem as I've always experienced, but was able to get around it by splitting data up into smaller chunks, and renaming vars to single chars, and removing white space which also helps speed the code up and reduce file size. Regards, StudioJunkyard.com Mads Erik Forberg wrote: Hello, can anyone help me debug the major memory leakage in IE on this page; http://www.prisguide.no/kategorier/mobiltelefon It seems to be the JavaScript when rendering new results after selecting a filter. I have tweaked it a bit, but seems to be very messy in IE. Runs with the jQuery 1.3.2 JS-lib. PS: Don't worry about IE6, we don't support it. :) It's just IE7 and IE8. Kind regards, Mads *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Major memory leaking in IE
Interesting, I've had similar problems all the way through each IE incarnation, I had a quick look at your example, with no luck, but then I didn't test it in IE. You would think M$ would have been able to fix this problem by now, as it looks like it's a similar problem as I've always experienced, but was able to get around it by splitting data up into smaller chunks, and renaming vars to single chars, and removing white space which also helps speed the code up and reduce file size. Regards, StudioJunkyard.com Mads Erik Forberg wrote: Hello, can anyone help me debug the major memory leakage in IE on this page; http://www.prisguide.no/kategorier/mobiltelefon It seems to be the JavaScript when rendering new results after selecting a filter. I have tweaked it a bit, but seems to be very messy in IE. Runs with the jQuery 1.3.2 JS-lib. PS: Don't worry about IE6, we don't support it. :) It's just IE7 and IE8. Kind regards, Mads *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***