Site Logo

Nikita Hlopov's

Blog about web development

Blog About Archive Tags

How to open the WordPress Media Library with an Upload files tab by default

25 Feb 2026
  • javascript
  • wordpress

By default, the Media Library in WordPress opens up with a list of media files to select from. However, you can set the default tab to Upload files with a single property.

Continue reading →

Simple carousel-like slider with pure CSS

04 Oct 2024
  • css

In this article, I’ll show you how to build a simple yet elegant CSS-only carousel slider for smooth, automatic scrolling.

Continue reading →

How to lazy load CodePen and CanIUse embeds

27 Feb 2024
  • javascript
  • performance

CodePen and CanIUse embeds that are often used on blog posts require the load of a lot of resources, and usually, this is done on the initial page load.

Continue reading →

Unterminated string literal error with the script and style tags

19 Feb 2024
  • javascript

I recently encountered an Unterminated string literal error, which turned out to be totally unexpected for me, as the string looked completely fine to me.

Continue reading →

How to place cursor at the end of the text field with JavaScript

16 Feb 2024
  • javascript

It’s a good idea to place the cursor at the end of the text field when it gains focus, especially if the field already contains a value.

Continue reading →
Next ⟩

This work is licensed under a CC BY 4.0 License.
The code in this work is licensed under an MIT License.

Privacy policy