Search

Nalezeno "JavaScript": 799

Everything You Need to Know About Date in JavaScript


Date is weird in JavaScript. It gets on our nerves so much that we reach for libraries (like Date-fns and Moment) the moment (ha!) we need to work with date and time. But we don't always need to use libraries. Date can actually be quite simple if you know what to watch out for. In this article...

How to Detect Text in Images


Images are a great way to communicate without text but oftentimes images are used/abused to spread text within social media and advertisements. Text in images also presents an accessibility issue. The truth is that it’s important, for any number of reasons, to be able to detect text in image...

Level up your .sort game


Sorting is a super handy JavaScript method that can display the values of an array in a certain order. Whether that’s real estate listings by price, burger joints by distance, or best nearby happy hours by rating, sorting arrays of information is a common need. If you’re already doing this with...

Collective #522


Extract critical CSS * Enabling Modern JavaScript on npm * Magical, Mystical JavaScript Transducers Collective #522 was written by Pedro Botelho and published on Codrops

Closures and Currying in Javascript


What are Closures? If you write code in Javascript it's quite likely you have come across the term closure, which is a useful yet often confusing concept. But just what is a c

Create a Custom useFetch() React Hook


A custom hook is a JavaScript function with a unique naming convention that requires - the function name to start with use and the function may call other Hooks

Detect if Element is a Web Component


I’ve advocated for web components since before they became a spec, mostly inspired by the Dojo Toolkit’s dijit framework. Empowering first class JavaScript widgets, as opposed to a mess of DIVs and templates, always made the most sense. Now that web components exist, and awesome...

IP Geolocation API


Detecting geolocation information from your user provides you a massive advantage: improved conversion, better segmenting and analytics, and providing more relevant content. There are numerous paid services which will provide geolocation info but they’re oftentimes too costly or short...

Implementing Private Variables In JavaScript


JavaScript (or ECMAScript) is the programming language that powers the web. Created in May 1995 by Brendan Eich, it’s found its place as a widely-used and versatile technology. Despite its success, it’s been met with its fair share of criticism, especially for idiosyncrasies. Things like objects...

Good News for Developers! ConsenSys is Launching ‘Job Kits’


The already booming crypto world is setting structure in place. Now, those developers who are interested in getting into the blockchain space, they will get guidance through a special ‘Job Kit.’ A few days ago, this ‘Job Kit’ is launched by the ETH development studio ConsenSys. How will this...

Resize Observer


Creating websites that are reactive and responsive used to be considered advanced but responsiveness is a necessity for successful websites and apps. We’ve added media queries, matchMedia, and a host of other APIs to help developers make responsiveness easier and now we get a new one:...

Collective #517


Tornis * Folding the DOM * Gitfolio * Devchecklists * A practical guide to JavaScript Proxy Collective #517 was written by Pedro Botelho and published on Codrops

Recursive Array.flat


There was much talk about Array.prototype.flat during its early stages, starting with the name alone. Many developers preferred the name flatten but the spec differed from MooTools’ implementation. MooTools would recursively flatten an array but the new, official flat implementation was only...

Collective #516


Subgrid * Ola * PHP Insights * What the Fr(action)? * HandUI * Functional-ish JavaScript Collective #516 was written by Pedro Botelho and published on Codrops

A Deep Dive into Native Lazy-Loading for Images and Frames


Today's websites are packed with heavy media assets like images and videos. Images make up around 50% of an average website's traffic. Many of them, however, are never shown to a user because they're placed way below the fold. What’s this thing about images being lazy, you ask? Lazy-loading...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace