Tom Nicolosi

WP Scripts

This is a reference to WP Scripts, an npm package of pre-made configurations for webpack meant to help simplify the front end development workflow. This package is included in the underscores ( _s) starter theme. The package includes configurations for CSS and JS linters, unit and end to end testing, Sass compilation, and code splitting.

WP Scripts Read More »

oEmbed in WordPress Notes

This is a placeholder for notes regarding oEmbed in WordPress. This is key after all: https://developer.wordpress.org/reference/classes/wp_oembed/ YouTube’s iframe API: IFrame Player API How do I get a YouTube video thumbnail from the YouTube API? https://oembed.com/ YouTube oEmbed support WordPress (Pods) oEmbed Items https://wordpress.org/support/topic/filter-hook-for-built-in-oembed-providers-eg-youtube/ How to get a YouTube thumbnail from a YouTube iframe? YouTube Data

oEmbed in WordPress Notes Read More »

Remote Storage

This is a placeholder about remote storage. This JavaScript library can be used to sync and store data from local storage across devices. It allows the user to keep their data private or store with a cloud provider of their choice. I hope to use this to make an app that does not require a

Remote Storage Read More »

iframe load event

I was writing a feature where I was on the client side writing the iframe code for a video oEmbed. This causes a delay while the content is loaded in the iframe. It behaves like an AJAX request in a sense. I discovered that the iframe raises a ‘load’ event when the content finishes loading.

iframe load event Read More »

Watch

I am creating some custom WordPress code and using my current favorite bundler, Parcel. I decide this time to take a hint from the source code of TwentyTwentyOne theme and use chokidar-cli to write my watch scripts directly. Watch has always been flakely for me, but so far this seems to be working out well.

Watch Read More »

Glide Slider and Carousel

This is a placeholder for setup instructions for my current go-to solution for sliders and carousels – Glidejs. Probably should mention why I like Glide: No jQuery dependency. Has all the options I have ever needed. Easy npm install and configuration. Easy to integrate across any platform I have tried so far.

Glide Slider and Carousel Read More »

Scroll to Top