views:

368

answers:

9

Well... simple question, right? But with no so simple answers. In firefox i use firebug console (profile) but... what to do in other browsers? Like Internet Explorer / Opera / Safari (on windows)

+1  A: 

You may use JavaScript optimizers

Ramesh Soni
A: 

This might not be a simple question to answer.But certain things has to be keep in mind while using or working with javascript.There are no hard and fast rules but I can think of some which I had done previously.Avoid circular refernces of javascript objects.This is particularly important to avoid memory leaks.Another important thing is garbage collecting of objects when they are no more referenced. You can Google for optimizing ways some are effective too!!

GustlyWind
A: 

no, no. I don't want a tool to do this. I want a way to measure timing performance, what functions are called and so on. Something somehow similar to Profile from firebug (which i don't know to use at 100%, but i can handle it :P ) For example, few days ago i had a site which had a endless loop and bring my cpu at 100%. In firefox i figured out who is the guilty mo fo very fast... How can i handle similar situation in IE (6/7), for example?

Ionut Staicu
SO isn't a discussion forum, it's a question with answers - this clarification should be in the question to make things clear.This is because the discussion isn't sorted by time, so otherwise things get out of order. Plus you will lose rep by people downvoting your answers.
Rich Bradshaw
+4  A: 

This particular problem solves itself over time. ;-)

Version 8 of the Internet Explorer (currently in beta 2) ships with a built-in JavaScript profiler. The next Safari version will probably also include one since its rendering engine, WebKit, now has one as part of its Web Inspector.

Konrad Rudolph
A: 

Try out Firebug Lite. I am not sure whether it will solve your purpose fully.

http://getfirebug.com/lite.html

Pradeep
+1  A: 

Nope, firebug LITE has only few capabilities of full firebug. And profile is not one of them :(

Ionut Staicu
You can use the "add comment" link below every answer to say something regarding that answer.
xardias
+3  A: 

This page contains some suggestions:

http://www.newearthonline.co.uk/index.php?page=article&article=338&pagenum=2

Joeri Sebrechts
+2  A: 

Yahoo provides a Javascript profiler, you may want have a look at that one.

xardias
A: 

i don't really want to include a script, because sometimes i overuse jquery and i don't want any conflicts. Anyway, i will try those scripts ;)

Ionut Staicu