Skip to content

How to prepare a gzip minified version of Bootstrap (or jQuery or Popper) for ESP8266 or ESP32

alf45tar edited this page May 22, 2020 · 2 revisions
  1. Download bootstrap files from https://github.com/twbs/bootstrap/releases/download/v4.1.3/bootstrap-4.1.3-dist.zip
  2. Unzip file and select CSS file according to your needs (https://getbootstrap.com/docs/4.1/getting-started/contents/#css-files)
  3. GZIP using 7-Zip or similar software
  4. Save into 'data' directory
  5. Calculate Subresource Integrity (https://www.w3.org/TR/SRI/)
  6. Add <link rel='stylesheet' href='/css/bootstrap.min.css' integrity='sha256-calculated subresource integrity hash' crossorigin='anonymous'> into <head> section

The same process mutatis mutandis works for jQquery (https://jquery.com/download/) and Popper (https://unpkg.com/popper.js/dist/umd/popper.min.js)