DigitaleGesellschaft / jekyll-theme-conference

Jekyll template for a conference website containing program, speaker, talks and room overview
MIT License
64 stars 59 forks source link

Reduce CSS stylesheet and JavaScript code #8

Closed lorenzschmid closed 3 years ago

lorenzschmid commented 3 years ago

In 9ea7bf0a6dc323c1ff579affa121c32f7d6e01df PurgeCSS and Terser have been added to the workflow example to improve the size of the included code (see also #5). Unfortunately, this leads currently to the following problems:

Therefore, both tools have been removed again from the workflow examples in d887b95e107d9fb2655571c2c839611eb64ed954. In order to reinstate see this patch highlighting the removed parts. For PurgeCSS, the leaflet classes should be put on a whitelist (see also current bug in purgecss#513). For both, the installed node package version should be specified.

Alternatively, it might be worth to split up the single JavaScript file into multiple ones and import them only selectively (e.g. the leaflet module is only needed on the location page). Also, not all Bootstrap components are used and thus have to be imported.