Preloader

Javascript 189

JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website.

How to convert a plain SVG string or SVG node to an Image (PNG or JPEG) in the browser with JavaScript

How to convert a plain SVG string or SVG node to an Image (PNG or JPEG) in the browser with JavaScript

Learn how to easily convert a plain SVG string to an image directly in the browser.

Carlos Delgado Carlos Delgado
  • March 4, 2021

  • Estimated reading time: 5 Minutes

37320
How to calculate the height of an image with a custom width preserving the aspect ratio with JavaScript

How to calculate the height of an image with a custom width preserving the aspect ratio with JavaScript

Learn how to calculate automatically the proper height of an image with custom width preserving the original aspect ratio.

Carlos Delgado Carlos Delgado
  • March 3, 2021

  • Estimated reading time: 1 Minute

20680
How to prevent regular users from opening the chrome developer tools in the browser with JavaScript

How to prevent regular users from opening the chrome developer tools in the browser with JavaScript

Learn how to prevent regular users from opening the developer's tools in the browser.

Carlos Delgado Carlos Delgado
  • March 1, 2021

  • Estimated reading time: 1 Minute

38856
What is the difference between the async and defer attributes in JavaScript

What is the difference between the async and defer attributes in JavaScript

Learn with examples what's the difference between loading a script normally, with the async or defer attributes.

Carlos Delgado Carlos Delgado
  • February 27, 2021

  • Estimated reading time: 5 Minutes

22230
How to properly configure "Lazy Loading" of a YouTube embed Video

How to properly configure "Lazy Loading" of a YouTube embed Video

Learn how to properly Lazy Load a YouTube embed video on your website with JavaScript

Carlos Delgado Carlos Delgado
  • February 25, 2021

  • Estimated reading time: 6 Minutes

55187
Why and when should you obfuscate your JavaScript code?

Why and when should you obfuscate your JavaScript code?

Discover why and when should you obfuscate your JavaScript code.

Carlos Delgado Carlos Delgado
  • January 27, 2021

  • Estimated reading time: 5 Minutes

33668
How to read multiple files at once using the FileReader class in JavaScript

How to read multiple files at once using the FileReader class in JavaScript

Learn how to read multiple JavaScript files at once using the FileReader in JavaScript.

Carlos Delgado Carlos Delgado
  • January 24, 2021

  • Estimated reading time: 4 Minutes

44262
Displaying a hint to suggest that the elements are scrollable horizontally with ScrollHint in JavaScript

Displaying a hint to suggest that the elements are scrollable horizontally with ScrollHint in JavaScript

Learn how to use the ScrollHint library to display a suggestion in horizontally scrollable elements.

Carlos Delgado Carlos Delgado
  • January 1, 2021

  • Estimated reading time: 7 Minutes

12325
How to fix ESLint error: Do not access Object.prototype method 'hasOwnProperty' from target object  no-prototype-builtins

How to fix ESLint error: Do not access Object.prototype method 'hasOwnProperty' from target object no-prototype-builtins

Learn how to prevent the "do-not-access-objectprototype-method" error from appearing when building your JavaScript application.

Carlos Delgado Carlos Delgado
  • December 24, 2020

  • Estimated reading time: 1 Minute

95005
How to determine the screen refresh rate in Hz of the monitor with JavaScript in the browser

How to determine the screen refresh rate in Hz of the monitor with JavaScript in the browser

Learn how you can easily determine the Screen refresh rate with the help of a little trick in the browser with JavaScript

Carlos Delgado Carlos Delgado
  • December 2, 2020

  • Estimated reading time: 3 Minutes

19796
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.