A Andres Hernandez
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
127

Latest Updates

August 12, 2026 0 Astro

Optimizing Performance in the rifasvelez-web Astro Project

Improving Project Efficiency

Maintaining a clean and performant codebase is essential for any web application. Recently, in the rifasvelez-web project—a web application built with Astro—I focused on a comprehensive refactoring effort to optimize internal logic and improve overall system efficiency.

The Problem

As the project grew, several areas of the codebase began to show signs of "complexity debt." We observed that some components were performing redundant calculations and state

August 11, 2026 0 Astro HTML

Optimizing Web Performance: Why We Switched to AVIF for Hero Assets

Every byte matters when it comes to first-contentful-paint (FCP). In our ongoing effort to polish the performance of the rifasvelez-web project, we took a hard look at our hero image assets and realized they were becoming a bottleneck.

Our landing pages were serving high-resolution PNG files. While visually crisp, these files were significantly inflating our total page weight. For users on mobile devices or slower connections, this translated into unnecessary latency.

The Audit

August 10, 2026 0 Astro JavaScript

Optimizing Gtag Performance in Astro Projects

Google Tag Manager (Gtag) is a staple for tracking and analytics, but implementing it incorrectly can lead to significant main-thread blocking, negatively impacting your site's Lighthouse scores and user experience. In our project 'rifasvelez-web', we recently revisited our Gtag implementation to ensure that analytics gathering doesn't come at the cost of page responsiveness.

The Performance Bottleneck

When loading external scripts like Gtag, browsers often prioritize these network

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

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.