Giphy Extension

Giphy is an online database for uploading and searching for GIFs (Graphic Interchange Format).

Marfeel employs the Giphy embed iframe feature to display a GIF. 

Implementation Details 

To implement the Giphy extension, Marfeel copies the iframe on the frontend along with its source. 

On the backend, Marfeel inspects if the source of the iframe identified in an article is in the allowed sources. If it is, Marfeel displays the iframe on the frontend. 

The iframe's source is only loaded when it's inside the viewport. 

Usage example

http://likemag.com/de/diese-11-situationen-kennt-jeder-der-bei-der-schweizer-armee-war/126033