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

Auto-Reload not working #119

Closed
darkyen opened this issue Jun 9, 2015 · 4 comments
Closed

Auto-Reload not working #119

darkyen opened this issue Jun 9, 2015 · 4 comments

Comments

@darkyen
Copy link

darkyen commented Jun 9, 2015

I use a gulp task to build the files and then phonegap serve to serve them, it used to work before /appzip but now it doesn't. It detects files as changed but never updates the developer app.

@darkyen
Copy link
Author

darkyen commented Jun 9, 2015

My bad, cordova.js was not linked properly, i wonder though why is it required for the cordova.js to poll the server ? Why can't a dev script be injected into the index.html or some other server side only measure ?

PS the appzip method seems to take considerable time over the earlier near instantaneous reload.

@darkyen darkyen closed this as completed Jun 9, 2015
@mwbrooks
Copy link
Collaborator

Hi @darkyen,

Glad you figured out the issue. We're working through some of the shortcomings of the /appzip approach. It's solved a major CORS issue but introduced some annoyances in performance.

We actually do inject the polling logic into all HTML files. However, I've noticed that it listens for deviceready rather than the load event, before initializing. I think your suggestion of using the DOM load event is more flexible without any drawbacks, so I'll create an issue to update that.

@darkyen
Copy link
Author

darkyen commented Jun 11, 2015

One more way could be using diffs ? After the appzip is sent only send the updated files, hot replace and reload them ?

@mwbrooks
Copy link
Collaborator

Yea, we've been calling that approach "delta updates." We definitely want
that to land, but decided to do an early release to ensure there were no
major issues (and we have found a few).

On Wednesday, June 10, 2015, Abhishek Hingnikar [email protected]
wrote:

One more way could be using diffs ? After the appzip is sent only send the
updated files, hot replace and reload them ?


Reply to this email directly or view it on GitHub
#119 (comment)
.

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

No branches or pull requests

2 participants