Version 2
Find Lipedema Trials
Enter your city, zip, or country to find active recruiting trials.
Note: Trial data is sourced from ClinicalTrials.gov. Map locations are approximate and for general reference only. Please contact the study coordinator listed in the trial details to verify the exact address and eligibility.
π Release Notes: Lipedema Trial Search Widget
Developer: Jonathan Kartt
Platform: Squarespace (Custom Code Block)
Data Source: ClinicalTrials.gov API v2
Release Date: 12/12/25
π Version 2.0: The "Precision & User Experience" Release
Status: Current / Production Release
Version 2.0 focuses on stability, data transparency, and patient utility. It addresses the "black box" feel of technical search tools by exposing specific location details, adding visual map aids, and ensuring the widget never "hangs" on slow connections.
π New Features
Multi-Location Visibility:
The Problem: v1 only showed the "Primary" location. If a trial had sites in both New York and California, a NY user might see the CA address and assume they weren't eligible.
The Solution: The widget now displays a bulleted list of recruiting locations. It automatically shows the top 3 relevant sites and hides the rest behind an expandable "+ X more locations" link to keep the interface clean.
Smart Location Sorting:
If a user searches for a specific term (e.g., "Texas"), the results list is re-sorted on the client side to move Texas-based facilities to the top of the bulleted list, ensuring the most relevant info is seen first.
Integrated Map Links:
Added a direct "π Map" link next to specific facilities.
Smart Filtering: The code filters out generic terms like "Research Site" or "Investigational Site" to ensure map links only appear when a specific facility name (e.g., "Mayo Clinic") is available.
Interactive Disclaimer:
Added a legal/informational footer to manage patient expectations regarding "Recruiting" status and exact address accuracy.
π§ Technical & Stability Improvements
"Fail-Safe" Loading Architecture:
The Problem: In v1, the dropdown relied on JavaScript to populate options. If the script loaded slower than the HTML, the dropdown would appear empty or "hang."
The Solution: Dropdown options (50 miles, 100 miles, etc.) are now hard-coded in HTML. The widget is functional immediately upon page load, eliminating race conditions.
Scoped Event Listeners:
Replaced inline HTML
onclickattributes with modern JavaScriptaddEventListener. This isolates the code scope, preventing conflicts with Squarespaceβs native scripts and ensuring buttons work consistently across all browsers.
