Listing Articles Tagged How To
Concepts, JavaScript, PHP, Tutorials & Guides
Implementing Tree Shaking for FontAwesome
Implementing Tree Shaking for FontAwesome Article Featured Image

Tree Shaking is the process of stripping out parts of libraries that you’re not actually using in your applications in order to optimize the file size of your build. In this short tutorial I’m going to apply it to CSS and a WOFF2 file, but you can use the same technique for other types of files as well; e.g.: JS files.

Continue reading…
JavaScript, Tutorials & Guides
How To Move the Cursor Inside an Input
How To Move the Cursor Inside an Input Article Featured Image

I’ve hit this problem when I was working on a @mentioning system for a chat I’m developing at work. When the user selected a mentionee from the results, I needed to insert that user in the input at the current cursor / caret position.

Continue reading…