Performance

Section Rendering API

Fetch just the HTML of a section without reloading the page.

Copy or embed this snippet

fetch('/?section_id=cart-drawer')
  .then(response => response.text())
  .then(html => console.log(html));

Embed this snippet on your blog or docs — attribution link appreciated: HTML to Liquid Converter · Convert to Shopify section →

Practice in the converter workspace

Draft OS 2.0 section output after you choose the right design pattern.