2017-04-11 14 views
0

當您滾動時,我已經看到這種頁面默默加載的趨勢。例如: http://www.adweek.com/brand-marketing/as-soda-consumption-declines-heres-how-coca-cola-is-reshaping-itself/滾動時新網址的靜默加載

滾動瀏覽文章後,會加載一篇新文章並更改URL。

挖掘源代碼並找不到任何東西。有任何想法嗎?

+0

使用F12工具,你可以看到大量的JavaScript代碼加載。還請看網絡標籤。 –

+0

記住你的目標:「對於無限滾動,跳出率是虛榮狀態」http://adrianroselli.com/2015/05/for-infinite-scroll-bounce-rate-is.html – aardrian

回答

2

是的,這些實現尋找用戶的scrooling和通過ajax加載新的內容。

$(window).scroll(function() { 
    if($(window).scrollTop() == $(document).height() - $(window).height()) { 
      // ajax call get data from server and append to the div 
      // change url 
    } 
}); 

看吧:jQuery load more data on scroll