Problem/Motivation

D7 has a misc/throbber-active.gif that was animated.

The D8 core/misc/throbber-active.gif is no longer animated. No idea why.

Proposed resolution

Add a working throbber with the correct padding for RTL and LTR

Remaining tasks

User interface changes

Yes, the throbber icon become animated and rolling...

API changes

None

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hass created an issue. See original summary.

hass’s picture

Issue summary: View changes
hass’s picture

Status: Active » Needs review

I tried creating a binary git patch, but EGit seems to have issues here. As the correct file is attached I'm just setting CNR as a core committer can just copy it in the folder and commit.

hass’s picture

TR’s picture

Title: Animation of trobber-active.gif image is broken » Animation of throbber-active.gif image is broken

Updating title spelling so this issue is found by search.

Manjit.Singh’s picture

Dont know why previous one is not working, I have added a new one, copied from D7. This is working fine. Please test it.

hass’s picture

There is one more file with the same name in "stable" theme that also need to be updated.

droplet’s picture

It seems it was tried to add some pixels to the left of the icons.

Off topic: Any good docs about "stable" theme, I feel annoyed about it to do things twice. While it's stable and patching stable. It's a bit crazy to me.

hass’s picture

Status: Needs review » Needs work

Stable icon is missing

chrisfree’s picture

I'm having a look at this right now.

chrisfree’s picture

Attached is a patch that replaces the Drupal 8 versions of throbber-active.gif with that from Drupal 7. This includes both the instance found in core/misc/ as well as that of the stable theme.

This is a temporary fix to restore the animation to the .gif currently in core. Thankfully, there is considerable work being done to replace this graphic entirely with a modern approach over here: #1974928: Update throbber icon.

chrisfree’s picture

Status: Needs work » Needs review
jwilson3’s picture

IIRC, The icon that was committed two years ago seems to have disabled spinning for performance purposes:

#1891764: Autocomplete throbber causes excessive CPU usage on some browsers
#1069152: Throbber in textfield is misaligned when browser hardware acceleration enabled (gfx)
Similar but not directly related: #659486: Add back the "loading" image to the Overlay in a way that does not kill performance

Mentioned this on #1974928-54: Update throbber icon.

Not sure if this was purposeful, or actually accidental. The issue #1069152 seems to describe that the whole purpose of splitting the images apart was so that one could be animated to avoid performance issues... but the actual code that got committed wasn't animated (confusing).

If it turns out that this was infact purposeful, then i would love to see effort and resources on this issue instead going towards hi-dpi compliant SVG rather than perpetuating oldskool GIF animations (I consider this to actually be a distraction from getting the modern SVG solution in sooner). Check out and participate in #1974928: Update throbber icon if this interests you.

hass’s picture

I tried to apply this patch, but it's not working. The images are corrupt than. I'm not sure if this is a Eclipse EGit issue.

droplet’s picture

@jwilson3,

Nope, it was correct GIF.

the current bug introduced in #2329649: Fix node create page RTL CSS

chrisfree’s picture

@hass the patch seems to apply cleanly for me. Guessing this is a binary issue or an OS issue?

As for the issue at hand, while I agree that our efforts should be on modernizing our throbber animation, I'd say that getting the current animated GIF fixed (animated) would be a good thing in addition to the work that needs to occur over in #1974928: Update throbber icon. This change is a much more discrete set of changes and I can foresee the SVG work taking a bit longer to implement. FWIW I'm trying to do my part and get that wrapped up as well.

@droplet @jwilson3 what do you guys think? Should we move forward with fixing the animation here AND try to wrap up #1974928: Update throbber icon OR just focus on #1974928: Update throbber icon? If we're saying the former, what needs to happen here? As of now, I'm confused as to what (if anything) needs to occur. If we're saying the latter, should we close this and mark as "Closed (won't fix)".

droplet’s picture

Status: Needs review » Reviewed & tested by the community

Just tested (both ltr & rtl). It's worked.

jwilson3’s picture

jwilson3’s picture

@chrisfree: It's rtbc now (thanks droplet!) so I guess no harm having it go through the motions at this point.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs screenshots

So given that #2329649: Fix node create page RTL CSS was all about rtl support - how about some rtl screenshots so show we haven;t regressed there.

hass’s picture

Status: Needs work » Reviewed & tested by the community

This image is a circle. It is both the same in ltr and rtl. We have not changed css, just two images. If something wrong with position this is a new case.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

@hass the current image from D8 is 17px wide and the old image is 15px this is because the D7 image has 2px of padding on the left but not on the right. Whereas the D8 image tries to have 2px on the right as well. Imho adding padding as part of the image is a problem. Yes the throbber should work BUT it should also look good on RTL as well.

alexpott’s picture

Also the previous image changed inactive throbber image as well so not changing here would result in RTL weirdness - let's just do the right thing and either make the 17px version work or make a version with no padding on either side and add padding correctly using CSS.

chrisfree’s picture

Assigned: Unassigned » chrisfree

Yes, we should use the animated version of the throbber from D7 (no padding embedded in the image) and ensure that this works on both standard and RTL. I should have some availability tomorrow to try and fix this up.

alexpott’s picture

@chrisfree unfortunately the D7 image has 2px of padding on the left. Hence #2329649: Fix node create page RTL CSS which tried to add 2px of padding on the right. I think the reason the image has padding is because the image is often floated. So the right thing to do is to add the 2px imo.

alexpott’s picture

Status: Needs work » Needs review
FileSize
1.72 KB

So looking at the D7 image in more detail the padding is on the right... here is an image with 2px of padding on the left and the animation still working...

alexpott’s picture

Opps forgot stable and here's the screenshots too...

swentel’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs screenshots

Screenshots look good, let's do this.

chrisfree’s picture

Looking good! Tested the patch locally with LTR and RTL themes.

alexpott’s picture

Issue summary: View changes
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!

  • catch committed ac8b1fa on 8.1.x
    Issue #2642362 by alexpott, chrisfree, Manjit.Singh: Animation of...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.