The <fen></fen> tags don't use javascript to display content, and they don't use all of the CSS that <pgn></pgn> tags use. The code currently sends the whole JS and CSS module used by the PGN even when just the FEN position is needed.
- Modularize the resources modules into
- CSS for board display
- CSS for Metadata, game notation, and buttons
- JS for board animation
- Modify code to send smallest module component needed to display page content
- Revise extension.json to list the javascript and css modules from above
- Edit <fen> rendering to set a trigger different from ChessViewerTrigger used by <pgn>
- Edit ChessBrowserHooks::onOutputPageParserOutput to determine what modules should be sent based on triggers set and send them