You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a loading spinner to HomeLive so that it does not attempt to load
two images and take a long time to connect the LiveView.
This will prevent the static render from loading an image and blocking
the LiveView connection until said image is loaded.
Once the LiveView is connected an img will be rendered on the screen.
Locally this was prone to a flash of unstyled content which I really
don't like but I am curious if that's not a thing when deployed.
Also, this causes a _ton_ of screen jumping on mobile screens which I
really really don't like.
This is partially because the image renders above the links on mobile
screens which means that the text gets pushed down when the image
finally kicks in...
This SVG approach might need adjusting to use a placeholder image that
keeps the same width + height dimensions that the actual images do to
prevent these screen jumps.
0 commit comments