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
@sbouafif suggested on the WordPress.org forums that we create a sprite and load all of the emojis from it, instead of the way it works right now(I believe the WordPress emoji script goes in the DOM and replaces all emojis with the corresponding SVGs from s.w.org.
The main challenge I see here is that there seem to be about 1014 or so emojis registered in script.js - that's a lot.
We'd need an automated script that would download locally all of the svgs for our registered emojis and then merge them into one big SVG(with something like svg-sprite? ).
The question is if there will be any speed benefit(that's relative due to connectivity speeds to your own site vs s.w.org). After all requests should be cached(at least the ones to s.w.org, whereas they might not be cached on all hosting providers - which would actually degrade performance).
So in the end, I'm not certain how much of a benefit it would be to create a sprite, vs load all emojis one by one.
The text was updated successfully, but these errors were encountered:
@sbouafif suggested on the WordPress.org forums that we create a sprite and load all of the emojis from it, instead of the way it works right now(I believe the WordPress emoji script goes in the DOM and replaces all emojis with the corresponding SVGs from s.w.org.
The main challenge I see here is that there seem to be about 1014 or so emojis registered in script.js - that's a lot.
We'd need an automated script that would download locally all of the svgs for our registered emojis and then merge them into one big SVG(with something like svg-sprite? ).
The question is if there will be any speed benefit(that's relative due to connectivity speeds to your own site vs s.w.org). After all requests should be cached(at least the ones to s.w.org, whereas they might not be cached on all hosting providers - which would actually degrade performance).
So in the end, I'm not certain how much of a benefit it would be to create a sprite, vs load all emojis one by one.
The text was updated successfully, but these errors were encountered: