[英]How does facebook knows when you stopped in an article/picture
First of all, I don't know if this is the right place to post this question. 首先,我不知道这是否是发布此问题的正确位置。 If it is, I'm sorry.
如果是,对不起。
Everytime you go through facebook newsfeed
you stop at some image to look at it or an article that you found interesting but didn't click on it . 每次您浏览
facebook newsfeed
您都会停下来查看一些图片或您发现有趣但没有点击的文章 。 If you go to some page and come back to the newsfeed
you will likely see the same image on the top of your newsfeed
. 如果你去一些页面和回来的
newsfeed
,你可能会看到你的顶部相同的图像newsfeed
。
I tried to look for some function/algorithm but didn't find any. 我试图寻找一些函数/算法,但没有找到任何函数/算法。
Others website doesn't have such feature eg Quora
and mySpace
. 其他网站则没有
Quora
和mySpace
这样的功能。
My question here is: How does Facebook knows that you stopped to look at that picture/article? 我的问题是: Facebook如何知道您停下来查看该图片/文章? if such function exists or it's only my stupid mind playing tricks on me.
如果存在这样的功能,或者只是我愚蠢的头脑在欺骗我。
I guess facebook detect your scroll position. 我猜facebook检测到您的滚动位置。
Every website can run a script that detect your scroll position every second, and then know if you're stopped (stay on the same position or same range of pixels for a while) in a post, picture or a video. 每个网站都可以运行一个脚本,该脚本每秒检测一次滚动位置,然后知道您是否在帖子,图片或视频中停下来(停留在相同位置或像素范围内一段时间)。 Then you can decide if the user find the content interesting or not.
然后,您可以决定用户是否觉得该内容有趣。
It's simple with jQuery: 使用jQuery很简单:
var s = $('body').scrollTop();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.