Wish to build an offline site?
Or an online site that does not attempt to speed up your site’s load time by serving assets via a third party Content Distribution Network (CDN)?
Then read on for some tips to help guide you.
- In
params.yaml
:- Change the
font
tonative
to use native fonts optimized for the user’s device - Set
[cms]
>netlify_cms
tofalse
to disable the Netlify Identity integration for Netlify CMS
- Change the
- Download the JS and CSS assets that your site configuration uses
- You can perform this in your web browser by choosing
File > Save Page As
on a page, such as the homepage, which makes use of all the integrations (such as code highlighting or math) that you enabled
- You can perform this in your web browser by choosing
- Either use the Terminal
cat
command or an online concatenator to combine the remote third-party JS assets into a single JS file in your site folder:static/js/vendor/main.min.js
- add
jquery
first - only add remote third-party files (not any local JS files such as
wowchemy*.js
) - before creating
main.min.js
, you can right click your site, choose Inspect, and search.js
in the code of your generated site if you wish to check the order in which JS files should ideally be added
- add
- Concatenate remote third-party CSS assets into a single CSS file in your site folder:
static/css/vendor/main.min.css
following the same procedure in the previous step but for.css
files (excluding any localwowchemy*
CSS files) - Add Font Awesome font assets to
static/css/webfonts/
- Optionally, add Academicons font assets to
static/css/webfonts/
Notes
- Join the discussion on contributing improvements to make it easier to create standalone sites