Answer the question
In order to leave comments, you need to log in
How are embed elements created on resources?
I mean those elements that can be embedded on third-party sites. How is it implemented on the server? Do they use caching? Maybe there is some kind of framework? MVC, js+ajax (+JSON?), iframe + subdomain + generated statics, through normal request parsing with conditional output?
Answer the question
In order to leave comments, you need to log in
It all depends on the task, although, in the general case, there are few differences from the usual web, except in the channel of communication with the server.
A great example is all sorts of services that combine social services, for example , oneall , offer a platform-independent way of js + rest api and more plugin options for wordpress and others. Embedded by inserting the desired script on the page, which itself downloads everything. what he needs to work.
The easiest way to implement embed elements for other sites is through iframe
. This solves many issues of rendering a component on a landing page, plus it is possible to implement the widget API through JS
An example of such an implementation: YouTube Player API Reference for iframe Embeds
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question