PHP

Resolving JavaScript ID Conflicts in WordPress - Best Practices

In WordPress, one might not immediately consider the significance of script IDs, yet these underpin the seamless functioning of a website. The issue arises when multiple scripts are enqueued with identical handles using WordPress's wp_enqueue_script() function—resulting in the latter script overwriting the earlier one, which…

Image srcset & sizes with Cloudflare Images

There are various ways to handle responsive images, one of the more time consuming ways is to add images using srcset and sizes. This method has the advantage that you then serve the right image size based on the device resolution. The downside is that you are…