Reloading javascript files

517 views
Skip to first unread message

Juanito

unread,
Jan 30, 2007, 11:30:41 AM1/30/07
to Firebug
If I load an initial page with some a specific file, make some changes
to the file and reload the page, the script in firebug's window is not
updated.

Firefox does load the new file, and firebug uses that file while
debugging which makes the source code in display out of synch with
what is being displayed. The only way I know to fix this is to close
and reopen the browser. I've tried closing firebug, hitting refresh
under the options menu, disabling firebug. Sometimes, it does seem to
fetch the new file if I scroll through the list of available js files
enough times.

Has anybody else experienced this problem? Am I missing some button
that reloads the js in view?

Mark Kahn

unread,
Jan 30, 2007, 1:30:33 PM1/30/07
to fir...@googlegroups.com
CTRL+F5 2 or 3 times fixes this for me.

-Mark

Jeff Shanholtz

unread,
Feb 8, 2007, 3:17:23 PM2/8/07
to Firebug
Any news on this bug? This is a hindrance to me as well. I was hoping
1.01 would take care of this, but I'm still seeing this same problem.

Joe Hewitt

unread,
Feb 19, 2007, 7:20:34 PM2/19/07
to fir...@googlegroups.com
Good idea, we should definitely add a "Reload" menu item to the
Script tab for this purpose. I filed a bug so I remember to do it:

http://code.google.com/p/fbug/issues/detail?id=36

- Joe

MarkL

unread,
Apr 11, 2007, 8:46:07 AM4/11/07
to Firebug
Any updates on this one? Definitely a big issue for me. Otherwise
Firebug has really saved me so much time, fantastic product!

Mark

On Feb 19, 8:20 pm, Joe Hewitt <j...@joehewitt.com> wrote:
> Good idea, we should definitely add a "Reload" menu item to the Scripttabfor this purpose. I filed a bug so I remember to do it:


>
> http://code.google.com/p/fbug/issues/detail?id=36
>
> - Joe
>
> On Feb 8, 2007, at 12:17 PM, Jeff Shanholtz wrote:
>
>
>
> > Any news on this bug? This is a hindrance to me as well. I was hoping
> > 1.01 would take care of this, but I'm still seeing this same problem.
>
> > On Jan 30, 8:30 am, "Juanito" <mendesj...@gmail.com> wrote:
> >> If I load an initial page with some a specific file, make some
> >> changes

> >> to the file and reload the page, thescriptin firebug's window is

Jonathan Kushner

unread,
Apr 11, 2007, 1:00:40 PM4/11/07
to fir...@googlegroups.com
Cant you hit ctrl + r to do a hard reload?

2777 SW Archer Road Apt F23
Gainesville, FL 32608
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=am9ua3VzaG5lcjk5MzA%3D

Devon Miller

unread,
Apr 11, 2007, 2:00:38 PM4/11/07
to fir...@googlegroups.com
I've been able to avoid restarting the browser by opening a new window
and closing the old one. This seems to release all dangling
references.

I use Venkman because there are a few things that are just easier in
it. It has the option to reload a script, but even that won't work if
the current script is pinned in place by a closure.

If you open Venkman on a new browser instance that has never loaded a
page it will display a list of loaded scripts. These are the scripts
in active use by extensions.

Now load a page that uses JS in a new tab. Venkman's "Loaded Scripts"
list will update to reflect the files loaded. Now, close the new tab.
If all is well, the new files should disappear from the list.

Any that don't go away have closures keeping them alive. If you're
lucky, expanding the script node will show the function that is still
bound. If it just shows "onload" with a line number of "1" then it's
bound through a data item and the only way to find it is to read
through the code.

This is one of the things that keeps me using Venkman. The other is
the options to stop/trace/ignore exceptions/errors. It's just a bit
finer grained than Firebugs "Break on All Errors."

dcm

On 4/11/07, MarkL <marklit...@gmail.com> wrote:
>

Mark Kahn

unread,
Apr 11, 2007, 3:18:10 PM4/11/07
to fir...@googlegroups.com
It doesn't always work.  I generally just hit ctrl+r a few times really fast and have gotten used to doing it.  Works 95% of the time.

-Mark

John J Barton

unread,
Apr 12, 2007, 12:47:56 AM4/12/07
to Firebug
A concrete test case will go along way to clarifying this issue.
For me the javascript always reloads on page reload.
John.

On Apr 11, 12:18 pm, "Mark Kahn" <cwol...@gmail.com> wrote:
> It doesn't always work. I generally just hit ctrl+r a few times really fast
> and have gotten used to doing it. Works 95% of the time.
>
> -Mark
>

> On 4/11/07, Jonathan Kushner <jonkush...@gmail.com> wrote:
>
>
>
> > Cant you hit ctrl + r to do a hard reload?
>

Mark Kahn

unread,
Apr 12, 2007, 8:29:45 AM4/12/07
to fir...@googlegroups.com
Just a theory...

Is anyone experiencing this issue ONLY using normal script tags?  ie just <script ...></script> in your page?

Most of my JavaScript files are actually added to the page using JavaScript ( document.createElement('SCRIPT')....).  If other people are doing the same thing to cause the issue, that might partially explain it.

-Mark

Devon Miller

unread,
Apr 12, 2007, 11:10:28 AM4/12/07
to fir...@googlegroups.com
I'm tied up getting a release out for the rest of the week, but
perhaps this weekend I can put together a sample.

dcm

Kris Zyp

unread,
Apr 13, 2007, 11:42:30 AM4/13/07
to Firebug
>From my experience I thought this was tied to the network monitoring.
I usually set "disable network monitoring" (except when I need it) and
that seems to make the scripts always fresh.
Kris

On Apr 12, 8:10 am, "Devon Miller" <devon.c.mil...@gmail.com> wrote:
> I'm tied up getting a release out for the rest of the week, but
> perhaps this weekend I can put together a sample.
>
> dcm
>

> On 4/12/07, Mark Kahn <cwol...@gmail.com> wrote:
>
>
>
> > Just a theory...
>
> > Is anyone experiencing this issue ONLY using normal script tags? ie just
> > <script ...></script> in your page?
>
> > Most of my JavaScript files are actually added to the page using JavaScript
> > ( document.createElement('SCRIPT')....). If other people are doing the same
> > thing to cause the issue, that might partially explain it.
>
> > -Mark
>

> >http://www.bluesecurity.com/register/s?user=am9ua3VzaG5lcjk5MzA%3D- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages