A Andres Hernandez
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
172

Filtered Posts (Clear all)

August 07, 2026 0 Astro JavaScript

Optimizing Performance: Integrating Partytown with Google Tag Manager in Astro

The Performance Bottleneck

Third-party scripts like Google Tag Manager (GTM) are notorious for slowing down the initial page load. When scripts execute on the main thread, they compete for resources, often delaying vital tasks like hydration or interactivity. In the rifasvelez-web project, we wanted to ensure our tracking didn't come at the cost of user experience.

The Solution: Offloading with Partytown

Partytown allows you to offload resource-intensive third-party scripts to a web

Streamlining Analytics: Ensuring Clean Google Tag Integration

Tracking user behavior is critical for data-driven decisions, but implementation details can often get buried under layers of configuration. In the rifasvelez-web project, we recently had to perform a targeted cleanup of our analytics integration to ensure that Google Tag (gtag) operates as intended without interference from extraneous scripts or partial configurations.

The Complexity of Analytics Setup

When working with modern frontend frameworks like Astro and React, it is tempting to

August 05, 2026 0 Astro Tailwind CSS

Optimizing SEO for Static Sites with Astro

Improving Discovery

Optimizing search engine visibility for static sites requires consistent attention to metadata and semantic structure. In the context of the rifasvelez-web project, we recently focused on streamlining our SEO strategy to ensure search crawlers interpret our content effectively.

The SEO Implementation

When working with Astro, SEO optimization often centers on properly configuring head elements and ensuring social media preview metadata is correctly injected into

August 04, 2026 0 Astro JavaScript

Optimizing Asset Lifecycle: Refreshing Gallery Content in Astro

The Challenge: Stale Visuals

Working on the rifasvelez-web project, which utilizes the Astro framework, we recently encountered an issue where the image gallery was failing to pull the latest updates. Users were seeing cached versions of media rather than the newly uploaded assets, leading to a disconnect between the repository content and the live web experience.

The Solution: Versioning Strategy

To ensure our static site generation consistently fetches the most recent media, we

Hardening the rifasvelez-web Gallery: Protecting Against XSS and Attribute Injection

A recurring challenge in web development is securely integrating external content into dynamic user interfaces. For the rifasvelez-web project, which features an interactive image gallery, this challenge became a focal point when handling metadata from remote Cloudinary JSON fields. The risk? Unsanitized data could lead to dangerous Cross-Site Scripting (XSS) vulnerabilities and attribute injection attacks when rendered into elements like Fancybox captions.

The Threat: DOM XSS and

Building Resilient Frontends: Mastering Error Handling and UI Fallbacks in Astro

Even the most carefully crafted applications can encounter unexpected issues, especially when relying on external data sources. For the rifasvelez-web project, we recently tackled a crucial area often overlooked: robust error handling and user-friendly fallback UIs for our image gallery, powered by Cloudinary.

The Situation

Previously, our image gallery component directly fetched data from Cloudinary. While this worked flawlessly most of the time, any hiccup – be it a network issue, an

Robust Cloudinary URL Construction: Graceful Handling of Missing Image Versions

In web development, reliable asset delivery is crucial. For the rifasvelez-web project, which relies on Cloudinary for image hosting, we recently addressed a subtle but impactful issue related to how image URLs were constructed. The challenge was ensuring that images consistently loaded, even when expected metadata, like a version segment, was missing or malformed.

The Problem: Fragile URL Generation

Cloudinary URLs often include a 'version' segment (e.g., v1234567890) after the host

Evolving Web Content: Implementing Raffle Deletion and Dynamic Footer Updates in Astro

In dynamic web applications, content evolves constantly. Features are added, data is updated, and sometimes, entire sections need to be gracefully retired. This ongoing process of managing content lifecycle is crucial for maintaining a clean, performant, and user-friendly experience.

Recently, on the rifasvelez-web project – a web application built with Astro – we tackled two specific content management tasks: the complete removal of a raffle entry and the addition of dynamic details to the

Refining Visuals: Ensuring a Flawless Masonry Gallery in Astro

Introduction

In the rifasvelez-web project, we showcase community achievements through a dedicated winners gallery. This visual feature is crucial for celebrating milestones and engaging users. For this, we opted for a masonry layout, a popular choice that creates a dynamic, visually appealing grid by fitting items of varying heights into columns with minimal gaps, similar to how a stonemason arranges bricks.

The Masonry Challenge

While aesthetically pleasing, implementing a robust

Boosting Web Performance: Optimizing Images in Astro

Introduction

Ever visited a website that felt sluggish, taking ages to load its vibrant visuals? More often than not, unoptimized images are the culprits, silently dragging down user experience and search rankings. In the competitive landscape of web development, speed is not just a feature; it's a necessity.

The Performance Imperative

For the rifasvelez-web project, a core objective is to deliver content at lightning speed. Unoptimized images can act like bulky luggage on a trip:

Andres Hernandez

Andres Hernandez

Product-focused Software Developer specializing in the React ecosystem (Next.js, TypeScript). Proven experience contributing to high-impact open source projects and building scalable web applications. Committed to clean code, UI/UX design principles, and SOLID architecture to solve complex problems.