Closed (fixed)
Project:
Better Social Sharing Buttons
Version:
4.1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2024 at 15:17 UTC
Updated:
30 Dec 2025 at 16:34 UTC
Jump to comment: Most recent
Comments
Comment #2
mably commentedRelated article: https://geoffrich.net/posts/preloading-svgs/
Looks like the Chromium bug is not fixed yet: https://issues.chromium.org/issues/40681653
Comment #3
shelaneThat is interesting as I don't see any attempt from this module to preload the svg.
Comment #4
erwangel commentedI am encountering the same error, although the file better-social-sharing-buttons.html.twig does contain an "as" value, as claimed by the error.
@shelane: the module (4.1.10) indeed preloads the svg.
Lines 4-5:
Also these lines look correctly rendered in the produced html:
<div style="display: none"><link rel="preload" href="/modules/contrib/better_social_sharing_buttons/assets/dist/sprites/social-icons--square.svg" as="image" type="image/svg+xml" crossorigin="anonymous"></div>The "as" error is displayed by MS Edge. Firefox just states "preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly". What are other possible tags? I don't see any at developer.mozilla.org. Or, perhaps the preload link better fits in the head section instead of body.
Comment #7
shelane