Skip to content

SVGs cause content shifting after loading #9

Description

@drinking-code

The replaced emojis take up no space when not yet loaded. So, when they are loaded and rendered, the content jumps.

The improvement here would be to

  • reserve the needed screen estate in advance
    and/or
  • use the preinstalled emojis of the OS as a fallback-placeholder (similar to font-display: swap)

to reduce/eliminate cumulative layout shift coming from react-openmoji

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions