[Prototype-core] Re: javascript performance/ optimization
Just know that there are some really amazing js coders out here :) Thanks guys! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: javascript performance/ optimization
On Sun, Mar 9, 2008 at 4:36 PM, Thierry <[EMAIL PROTECTED]> wrote: > > A lot of the problems also seem to have to do with redrawing the page, > things like sliders and draggables with transparency seem to really > hit it hard. You are interested in Joseph's talk: http://josephsmarr.com/papers/Smarr-OSCON-2007.ppt Search and you will find a video of that talk, too. Lots of tips. But transparency usually hits hard, yeah, especially on Linux desktops with legacy video drivers (people with hardware older than a couple of years). But this is not the right list to talk about this. It's better to raise usage questions in the rails-spinoffs list. But you can post here if you have an actual idea how to speed up some code in Prototype, we're always on a lookout for better solutions. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: javascript performance/ optimization
Yeay firebug it is, great tool has been really helpful so far. Performance problems are currently only problematic with ie, which makes using firebug for performance testing less representative (the weaknesses are quite different across browser) A lot of the problems also seem to have to do with redrawing the page, things like sliders and draggables with transparency seem to really hit it hard. Any links to performance optimization in those areas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: javascript performance/ optimization
Thierry, The first thing to do is to determine *why* the app is slower than you would like; then you can direct your optimization efforts appropriately. "What if" optimization (guessing at what's slowing things down and then fixing those things) tends to be a time-waster. So the first thing would be to find some decent JavaScript profiler tools and use those. I'd be interested to know what tools people on the list would recommend; I haven't had to profile a large JavaScript app yet... Firebug (http://www.getfirebug.com) certainly offers some nifty profiling features. As for the question about the script parsing, well, it's easy enough to find out. Disable all of the script stuff but leave the script in, get some timings, then remove the link to the script. :) Hope this helps, -- T.J. Crowder tj / crowder software / com On Mar 9, 9:53 am, Thierry <[EMAIL PROTECTED]> wrote: > Hey, > > Im trying to improve the speed of a js app. After reading some > articles i'm considering a few things. > - Does it make sense to replace binding events with the old fashioned > onclick="functioncall()" > - When not using the javascript on the page, is there still a > performance hit from parsing the script; and how large is this effect > > Tips and links regarding articles on js performance would be > appreciated :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: javascript performance/ optimization
Consider using event delegation. Best, Tobie On Mar 9, 10:53 am, Thierry <[EMAIL PROTECTED]> wrote: > Hey, > > Im trying to improve the speed of a js app. After reading some > articles i'm considering a few things. > - Does it make sense to replace binding events with the old fashioned > onclick="functioncall()" > - When not using the javascript on the page, is there still a > performance hit from parsing the script; and how large is this effect > > Tips and links regarding articles on js performance would be > appreciated :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---