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

Remove the platform.ready for the Observable #96

Merged
merged 2 commits into from
Sep 7, 2017
Merged

Conversation

tgensol
Copy link
Contributor

@tgensol tgensol commented Sep 6, 2017

Removing the platform.ready event for faster loading and really better behavior in bad network areas. (As explained, sometimes, the platform.ready event is never fired, but it is hard to find why)

@ihadeed
Copy link
Member

ihadeed commented Sep 6, 2017

deviceready doesn't fire if !platform.is('cordova').

@tgensol
Copy link
Contributor Author

tgensol commented Sep 6, 2017

I see, but using the platform.ready is really bad here, the behavior when I am using my phone in the subway (where the cache is important) is crazy, and also for huge amounts of my users...

Do we need the platform.ready event to use the platform.is function ?

@ihadeed
Copy link
Member

ihadeed commented Sep 6, 2017

No, platform.ready is not needed for platform.is.

@tgensol
Copy link
Contributor Author

tgensol commented Sep 6, 2017

Then this commit could be better, and working for both ?

And just for myself, you are using the !platform.is(cordova) first because Ionic is mainly used on desktop ?

@ihadeed
Copy link
Member

ihadeed commented Sep 6, 2017

Yeah this PR looks good now.

I'll merge it soon when I'm ready to publish a new release.

@ihadeed ihadeed merged commit 6c3b20e into zyra:master Sep 7, 2017
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

Successfully merging this pull request may close these issues.

2 participants