from Hacker News

Ask HN: Building Great Embedded Web Apps?

by bentice on 1/7/24, 10:53 AM with 3 comments

I’m building a web app that will primarily be embedded on my clients websites in an iframe or by other means. I am looking for articles, guides, or talks on best practices for building embedded web apps. Does anyone have any suggestions?

Some issues I’m encountering: - Building UI's with no scrolling - Responsive design within iframes - Testing different scenarios my iframe might be in

I really like Typeform’s embedded forms. Anyone have other products which have really good embedded functionality?

  • by pacifika on 1/7/24, 11:20 AM

    Implementing these I’ve found it useful if the iframes content supports iframeresize (http://davidjbradshaw.github.io/iframe-resizer/), window message passing of url changes to the host site via the dom, and typically supports google analytics (usually not possible via iframe, only when embedding using scripts).
  • by beardyw on 1/7/24, 3:20 PM

    Will it be cross origin? If so I think there are other issues.