Leap Kids Dental
Status: Active
Categories: WordPress, Headless CMS, Gatsby JS, API Integration
At Perch, I built the site for Leap Kids Dental, a large dental practice owned by Rock Dental Brands. Their team was already used to WordPress, so we built a WordPress back end for managing content and took a different approach on the front end to meet two key requirements.
The Requirements
The practice was already collecting a large amount of data in a third-party application, including phone numbers, pictures, reviews, and hours. They wanted to keep that system as their single source of truth instead of updating the same information in multiple places. Querying the API on every page load was not practical, since it would quickly exceed allowed query limits and slow the site down.
Page speed was also a major priority, because of its effect on search engine rankings.
Static Builds with Gatsby
To solve both problems, we used a headless WordPress setup with Gatsby, which was a newer approach at the time. Editors manage content in WordPress as usual. Whenever new content is added or the team triggers a deployment, Gatsby compiles the entire site into static HTML, CSS, and JavaScript files, with no PHP running on the server for page requests.
During each build, the site queries the third-party API once and writes that data directly into the static HTML where it is needed. Visitors load static files with the data already in place, so no page request has to call the API.
The result was a fast site with all the data the practice needed, and the team kept editing in WordPress as before.