wiKB

Wiki-based Knowledge Base

View on GitHub

Optimize web page loading

Resources

Performance

Security

Accessibility

A checklist: https://design-accessible.fr/checklist

Protocols Support

Free illustrations

Compress JPG and PNG Images

Use this script: optimize-img

Example:

find . -type f -exec file -i {} \; | grep image | cut -d: -f 1 | xargs ~/tools/miSCripts/optimize-img

Optimize JavaScript

Use vanilla JavaScript instead of jQuery

Lightweight JavaScript frameworks

Use a light framework such as svelte instead of jQuery, the full Bootstrap, etc. It embeds only the part you add at compile time, instead of loading the full framework at each visit of your website.

Minify JavaScript

uglifyjs -o agency.min.js agency.js

Optimize CSS

Lightweight CSS frameworks

Use a light framework such as Knacss instead of a full bootstrap.

Minify CSS files

yui-compressor agency.used.css -o agency.used.min.css

Apache Configuration

Enable Caching in Browser

Enable the expires module:

sudo a2enmod expires
sudo systemctl restart apache2

Add this configuration to the virtualhost:

<IfModule mod_expires.c>
    <FilesMatch "\.(jpe?g|png|gif|js|css|woff2)$">
        ExpiresActive On
        ExpiresDefault "access plus 1 month"
    </FilesMatch>
</IfModule>

WordPress extension

Enable CloudFlare

Using the (free) CloudFlare service will automatically cache your website. To be continued.