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
On Lambeth we're using (some) localgov_paragraphs but not fontawesome. Due to the dependencies on fontawesome we can't uninstall it, but at least we can configure the module not to load the icons. It would be great to not have a dependency on the module at all, at least on our site.
From glancing through the code it looks like fontawesome is used only on localgov_labelled_icon paragraph. Maybe that could be split into it's own module and made optional?
Another option would be to load fontawesome in the paragraph, that way the large fontawesome js (with icons in) file won't get loaded unless that paragraph is in use.
Otherwise, by default, there is 400k of fontawesome being loaded on every page for no reason.
The text was updated successfully, but these errors were encountered:
The way this was resolved in localgov_theme was to check if the fontawesome module was installed and use the icons from that, else just set it up as its own library and import the stylesheet itself.
Agree we should split the paragraphs up in localgov_paragraphs to give some more control on turning ones on and off that sites won't need, perhaps in groups.
On Lambeth we're using (some) localgov_paragraphs but not fontawesome. Due to the dependencies on fontawesome we can't uninstall it, but at least we can configure the module not to load the icons. It would be great to not have a dependency on the module at all, at least on our site.
From glancing through the code it looks like fontawesome is used only on
localgov_labelled_icon
paragraph. Maybe that could be split into it's own module and made optional?Another option would be to load fontawesome in the paragraph, that way the large fontawesome js (with icons in) file won't get loaded unless that paragraph is in use.
Otherwise, by default, there is 400k of fontawesome being loaded on every page for no reason.
The text was updated successfully, but these errors were encountered: