Why minification matters? When you write code, write comments as much as you can, use good naming conventions, use spaces and write beautiful code. This is for your own understanding. If you are working in a team, other developers can also understand well written, well commented code. Readable code welcomes you when you revisit it to modify it, build on top of it or develop it further. But machine does not need beautiful code, with spaces and comments. Computer processor prefers code without comments and spaces. Minification is a process of removing extra spaces, line breaks and comments from code. It also changes long variables names into short names. Minified file is less in size and it can load in web browser quickly.
Work with CSS and Javascript files but minify them at the end. Keep the source and link minified versions of CSS and JavaScript files in webpage. There are tools, routines, bundlers that can minify code as you save your code. But I am giving you a really really simple and easy way to minify CSS and JavaScript code. You can even minify HTML document.
Minified code also protects itself from stealers. It's a convention to save minified file with .min.FileExtension name. For example custom.css will be minified into custom.min.css. custom.js will be minified into custom.min.js. Developers use plugins and libraries in their projects. They prefer linking minified versions. You can minify CSS and JavaScripts on the fly, on each save, right from your code editor.
More CSS Tutorials:
• CSS
#minify #minification #code #css #js #javascript #webdevelopment #webstylepress
Thank you!
For channel support:
👍 LIKE
👊 SUBSCRIBE
🔔 Hit BELL ICON
✍️ COMMENT
Channel: / webstylepress
Website: https://www.webstylepress.com
FaceBook: / webstylepress
Twitter: / webstylepress
Instagram: / webstylepress
LinkedIn: / webstylepress
GitHub: https://github.com/webstylepress
Watch video Minify CSS, JavaScript, HTML easily right from Code Editor online without registration, duration hours minute second in high quality. This video was added by user WebStylePress 08 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16,870 once and liked it 162 people.