mozilla / universal-search-content

the iframe that we put inside the autocomplete dropdown
7 stars 7 forks source link

Show loading/error placeholder images when appropriate (closes #78). #122

Closed chuckharmston closed 8 years ago

chuckharmston commented 8 years ago

This PR:

r? @bryanbell @6a68

When everything errors.

screen shot 2015-12-06 at 5 20 14 pm

When everything is loading.

screen shot 2015-12-06 at 5 22 43 pm

When everything has loaded.

screen shot 2015-12-06 at 5 24 50 pm
bryanbell commented 8 years ago

Looks Great!

jaredhirsch commented 8 years ago

What if we just always show the globe during loading?

I don't think users will care about the loading status of the favicons, so flickering from dotted to globe might be more distracting than just showing a globe to begin with.

@bryanbell, @chuck, thoughts?

chuckharmston commented 8 years ago

That’s a fine idea. I’m on it.

chuckharmston commented 8 years ago
screen shot 2015-12-07 at 8 44 07 am

Refactored to remove the loading ellipsis icon. Since we're using the same icon for the loading and error states, we display the globe as the default state, show the icon if it successfully loads, and do nothing on error.

jaredhirsch commented 8 years ago

Sorry this review is dragging on, I think it's really close!

jaredhirsch commented 8 years ago

@chuckharmston Now that the view refactoring PR has landed, I think injectFavicon could pretty naturally be defined on the base row view. I'm happy to do the rebasing if you'd rather keep your brain in python-land, let me know

jaredhirsch commented 8 years ago

@chuckharmston Do you want to rebase this or close it for now?

chuckharmston commented 8 years ago

I'm pretty far away from working on this, I'll close it for now.