简体   繁体   English

嵌入到轮播中时,twitter feed不显示

[英]twitter feed not showing when embedded in carousel

Quite an odd problem I have here. 我在这里有一个奇怪的问题。 I have created an infinite carousel that keeps scrolling through 3 list items. 我创建了一个无限旋转木马,可以不断滚动浏览3个列表项。 In the first list item I have embedded a twitter widget. 在第一个列表项中,我嵌入了一个Twitter微件。 However this doesn't appear to be loading, instead it just says "tweets by..." 但是,这似乎没有被加载,而是说“ tweets by ...”

What is more bizarre is when I scroll through my carousel and it gets to the point where the twitter widget comes back around, it is now working. 更奇怪的是,当我滚动浏览我的轮播时,它到达了Twitter小部件重新出现的地步,现在可以正常工作了。 So it doesn't work when the page is loaded, but it does once I have gone through all the list items in the carousel once. 因此,当页面加载时,它不起作用,但是一旦我轮播了所有列表项,它就会起作用。

Can anyone suggest why thi might be happening, or even a work around for it. 谁能说出为什么会发生这种事情,甚至可以解决这个问题。 website is here so you can see the issue: http://www.samskirrow.com/client-bionic 网站在这里,所以您可以看到此问题: http : //www.samskirrow.com/client-bionic

It worked for me in Firefox on a mac, but the problem may be that in other browsers the call to twitter does not happen until the twitter carosel iframe item is rendered visible. 它在Mac上的Firefox中对我有用,但是问题可能是在其他浏览器中,直到将twitter carosel iframe项显示为可见,才发生对twitter的调用。 At page load the item is not rendered, so the call may not get made at that time since it is unnecessary to load the page. 在页面加载时,不会呈现该项目,因此由于没有必要加载页面,因此可能无法进行调用。

Sweet site though :) 甜蜜的网站,虽然:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM