openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Moved ajax-loader.gif to achieve better caching

Open Spedi opened this issue 1 year ago • 6 comments

Closes #9104

Moved ajax-loader.gif from the css folder to the images one, to achieve better caching, and updated all deprecated references to the file.

Stakeholders

@RayBB

Spedi avatar Apr 28 '24 16:04 Spedi

Hi @RayBB, I'm not sure why there's 3 commits to this PR, since I created a new branch just for the caching issue. Please see the changes and let me know if I did something wrong (which is highly probable). Also I updated the references on 2 files but I can't see them in the commits here on Github, not sure why though.

Spedi avatar Apr 28 '24 16:04 Spedi

Got why I didn't see the update on references, didn't do git add .... noob error I suppose. Nevertheless I can't understand why the other commits (Those about Issue #9135) are on this PR, maybe you can help me on elucidating the issue there.

Spedi avatar Apr 28 '24 16:04 Spedi

@Spedi you could just undo the changes related to old-style-lists and push that in a new commit.

RayBB avatar Apr 28 '24 21:04 RayBB

@RayBB Done that, it was an easy fix indeed. Nonetheless, do you know why this stuff happened? I'm a newbie to the Git world so I may have messed up something in the process, it'll be very helpful to have some kind of feedback. Thank you so much for your help and patience, really appreciate it, I'm learning a lot by working on this project! :)

Spedi avatar Apr 29 '24 20:04 Spedi

The changes make sense, though I'm confused why we replaced the transparent version of the gif with one having a white background -- that may have some visual consequences.

Cc: @RayBB

mekarpeles avatar May 06 '24 19:05 mekarpeles

@mekarpeles idk why github show sit as not transparent but this is what it looks like in prod already. image

The "transparent version" isn't used anywhere at all that's why we're removing it. Personally, I think it would be quite nice to have a fancy svg loading indicator but I'll leave that to the design team to decide on :)

RayBB avatar May 06 '24 21:05 RayBB