openfoodfacts/openfoodfacts-server

Folksonomy Engine loads CSS and a font from CDNs

Open

#9,012 opened on Sep 17, 2023

View on GitHub
 (6 comments) (3 reactions) (0 assignees)Perl (477 stars) (236 forks)batch import
:star: :bug: top bug:star: top issueCSSJavaScriptgood first issue🎯 P1🏷️ Folksonomy Project

Description

https://github.com/openfoodfacts/openfoodfacts-server/blob/a0e358e7a79f55ed457d5676067e121ff7097416/html/js/folksonomy.js#L63-L65

image

For ProductOpener itself, we usually try to reduce the dependency on 3rd party CDNs. folksonomy.js does the opposite by loading three files from three different CDNs.

  1. jQuery UI is already bundled with ProductOpener
  2. FontAwesome could be revisited, because ProductOpener now mostly seems to use Material Icons since the redesign
  3. Bundle jqGrid, or replace it (if there's feature parity) with other grid already bundled?

Code pointers

You can find some code pointers here. If some are missing, feel free to add them yourself in this file, or to ask them.

Part of

  • #7525

Contributor guide