The Texas Ragin Cajun Cajun Catering in South Central Texas

While we're still finalizing our content, we've included this placeholder text to occupy the space temporarily. Once our content is ready, we'll replace this text with the real deal. Placeholder text serves as a helpful tool to visualize how content will appear on our website.

document.addEventListener("DOMContentLoaded", () => {

  const header = document.querySelector(".brxw-header-01");
  let headerHeight = header ? header.offsetHeight : 100;
  
  // Add header height as CSS custom property to html tag
	document.documentElement.style.setProperty('--brxw-header-height', `${headerHeight}px`);

  // Throttled resize handler
  let resizeTimeout;
  function onResize() {
    clearTimeout(resizeTimeout);
    resizeTimeout = setTimeout(() => {
      // Recalculate header height in case it changed
      if (header) {
        const oldHeaderHeight = headerHeight;
        headerHeight = header.offsetHeight;
        
        // Update CSS property if height changed
        if (oldHeaderHeight !== headerHeight) {
          header.style.setProperty('--brxw-header-height', `${headerHeight}px`);
        }
      }
    }, 100);
  }

  // Initialize
  try {
    // Don't run initial check - let header start without any background classes
    window.addEventListener("resize", onResize, { passive: true });
    
  } catch (error) {
    console.error("Woops, there's an error", error);
  }
});