Skip to content

Instantly share code, notes, and snippets.

View ksandaru's full-sized avatar

Kanishka Sandaruwan ksandaru

View GitHub Profile
@ShariqAnsari88
ShariqAnsari88 / Footer.jsx
Last active March 9, 2024 13:06
Online Shoe Store
@gaearon
gaearon / minification.md
Last active October 15, 2024 07:39
How to Set Up Minification

In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.

Here's one way to set it up:

  1. Install Node.js
  2. Run npm init -y in your project folder (don't skip this step!)
  3. Run npm install terser

Now, to minify a file called like_button.js, run in the terminal: