What are effective methods / strategies for embedding content on external websites?

I have HTML / JavaScript content on my website that I want other websites to embed.

What are some good strategies? Should I send json with a script to insert? Should I create an iframe for the widget?

Any advice would be appreciated, thanks.

Can someone describe how this is done in general? How to enable settings? Through the rest?

+4
source share
1 answer

Depends on the intent of your content - in the past I was happy with iframe, but sometimes I prefer to load external content using ajax. I usually try to avoid iframes because they are difficult for the skin.

+1
source

Source: https://habr.com/ru/post/1332988/


All Articles