front End Performance Check-list For Production

In web development and exactly front-end web, we spend more time searching for the best design and content to our pages, it’s good but we miss to optimize our web pages.

In this article I will share with you my chick-list that I use to optimize my web pages after development. So feel free to leave a comment if you think I miss something.

This checklist contains optimization for SEO and also pages load time and some best practices.

let’s start !!!!

autoprefixer for cross-platform CSS: we all write CSS rules for our favorite browser, for me, I use Chrome in development. but you need to prefix all these rules to support all kind of browser. Autoprefixer will use the data based on current browser popularity and property support to apply prefixes for you. you can use it with command line.

npm install -g postcss-cli autoprefixerpostcss *.css use autoprefixer -d build

Or with webpack configuration or with this online tool.

Purifycss: an amazing tool that can help you to delete all unused CSS code in your project. purifycss takes content (HTML/JS/PHP/etc) and CSS, and returns only the used CSS, and it’s very useful if your application is using a CSS framework like Bootstrap.

To install purify-css:

npm install -g purify-css

How to use it:

purifycss src/css/main.css src/css/bootstrap.css src/js/main.js — min — info — out src/dist/index.css

Get More infos from purify-css github page.

minify CSS : minify your CSS files you can minify with purifycss or minify all assets online.

checkgzipcompression.com

You can check your Gzip compression too, here.

Thanks for reading! feel free to leave a comment if you think I miss something.

If you think other people should read this, press the 💚 button, tweet and share the post. Remember to follow me on Medium so you can get notified about my future posts.

Read more stories https://elazizi.com/

Press the 💚 button