A Andres Hernandez
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
172

Filtered Posts (Clear all)

August 09, 2026 0 Astro

Optimizing Social Sharing: Refining Open Graph Metadata in Astro

Improving Discovery

When building content-driven sites, your social presence is only as good as your meta tags. We recently revisited the rifasvelez-web project to streamline how our pages present themselves when shared across social media platforms. Specifically, we focused on cleaning up the implementation of Open Graph (OG) image generation to ensure consistent and high-quality link previews.

The Challenge of Consistent Metadata

In modern web development, particularly with static

August 08, 2026 0 Astro JavaScript

Optimizing Analytics Integration in Astro Applications

Improving Data Tracking

In our project, rifasvelez-web, we recently focused on refining our analytics integration. As we scale our web presence, ensuring that user interaction data is captured accurately and efficiently is critical for our growth metrics.

The Challenge

Our existing analytics implementation required maintenance to ensure better tracking reliability. Additionally, as we evolved our content structure, the underlying data schema needed minor adjustments to stay

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

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.