gokatz / ember-device

Optimize your Ember apps based on the user's device and network constraints. #BuildForAll
https://ember-device.netlify.com/
MIT License
11 stars 1 forks source link

FastBoot fallback? #12

Open lolmaus opened 4 years ago

lolmaus commented 4 years ago

Hi! Awesome addon!!

The docs need FastBoot mentioned. A strategy for a fallback should be offered.

gokatz commented 4 years ago

Thanks for filing this issue, @lolmaus. Yes, we have to offer a fallback for fastboot. While authoring this add-on, I haven't considered this use case.

Do you think falling back to the least resource-intense option would be fine? Like, preferring 2g for network connection in fastboot build. So, on initial render, the least intense option will be used and once client hydration happens, the addon will switch to the appropriate conditions based on the client.

lolmaus commented 4 years ago

That does seem to be a reasonable default. But could you also make it configurable?

gokatz commented 4 years ago

cool. That shouldnt be an issue.