The ol/ext/IFrameAPI lets you embed an ol map on your website and control the map using JavaScript.
You don't need to include Openlayers js or css in your main page, just add the js API and the widget (as an IFrame)...
This lets you embed maps created in an other site into yours and control them with the API.