Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The inspector causes a double refresh #253

Open
jasonLaster opened this issue Mar 4, 2015 · 6 comments
Open

The inspector causes a double refresh #253

jasonLaster opened this issue Mar 4, 2015 · 6 comments

Comments

@jasonLaster
Copy link
Member

When you refresh the page with the inspector, there's a second refresh

@Maluen
Copy link

Maluen commented Mar 4, 2015

Not sure on the changes you made to the original Backbone Debugger core, but on it the second refresh is needed to reinject the agent on-the-fly so to keep debug mode running.

However the second refresh should happen almost immediately and thus be (almost?) unnoticeable, otherwise the issue might be something else.

@jasonLaster
Copy link
Member Author

@Maluen - I don't think we changed the page reload mechanics much at all. The reload is fast, but still pretty noticable because it involves a decent page flash and assets loading/re-loading...

@Maluen
Copy link

Maluen commented Mar 5, 2015

Got it. Happy to hear if there are alternative methods for keeping debug mode, since injected scripts aren't reinjected automatically on subsequent reloads and this does not seem configurable:

https://developer.chrome.com/extensions/devtools_inspectedWindow#method-reload

The script will not be injected after subsequent reloads—for example, if the user presses Ctrl+R.

@caseycesari
Copy link

I'm seeing this too on an app I'm building with Marionette. However, there's no double refresh on the demo site referenced on the Marionette inspector page. Any ideas as to why that is?

@jasonLaster
Copy link
Member Author

@caseypt i bet there is :) it's a thing

@shankarpshetty
Copy link

I am not sure if I am adding any value but, this refresh issue gives hard time when I use break points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants