懒加载Instagram Blockquote嵌入

时间:2018-02-19 00:05:38

标签: javascript html instagram

有没有人试图懒惰加载instagram blockquote?

是否有任何库用于延迟加载instagram blockquote?

1 个答案:

答案 0 :(得分:1)

下面是一个使用库的示例:https://codepen.io/kerns/pen/mPReGE

type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; // no constraint as in the new Omit in 3.5

interface A {
    x: string;
    y: number;
}

interface B extends A {
    z: Date;
    w: boolean;
}

type OmitA<T extends A> = Omit<T, 'x'>;
type OmitB<T extends B> = Omit<OmitA<T>, 'z'>; // works fine now
host: localhost
      <iframe allowtransparency="true" frameborder="0" height="710" scrolling="no" data-src="//instagram.com/p/zkOqETkZjI/embed/" width="612" class="lazyload"></iframe>