タイトルとURLをコピーしました
const twitterEmbed = document.getElementsByClassName('twitter-tweet'); const instaEmbed = document.getElementsByClassName('instagram-media'); try { if (twitterEmbed.length !== 0) Defer.js('//platform.twitter.com/widgets.js','widgets-js',1000); if (instaEmbed.length !== 0) Defer.js('//www.instagram.com/embed.js','embed-js',1000); } catch (error) { console.log(error) }