0
目前的一個大問題是我的flexslider加載速度不夠快。從谷歌瀏覽器的網絡報告中動態加載到滑塊中的圖像表明,它們的加載速度不夠快。Slider(flexslider)在頁面加載時加載速度不夠快?
Theres一個足夠大的延遲,我不是很高興,理想情況下,希望使滑塊及其圖像加載儘可能快,因此用戶不必等待它加載。
這是腳本相關或DNS相關。即時通訊非常困惑,爲什麼它需要這麼長時間才能加載。
目前的一個大問題是我的flexslider加載速度不夠快。從谷歌瀏覽器的網絡報告中動態加載到滑塊中的圖像表明,它們的加載速度不夠快。Slider(flexslider)在頁面加載時加載速度不夠快?
Theres一個足夠大的延遲,我不是很高興,理想情況下,希望使滑塊及其圖像加載儘可能快,因此用戶不必等待它加載。
這是腳本相關或DNS相關。即時通訊非常困惑,爲什麼它需要這麼長時間才能加載。
因爲我有編輯的腳本來此。它似乎縮短了時間,但仍然有點遲緩。
$(document).ready(function() {
var urls = [
'http://fantasyfootballpundits.com/football/?category=Captaincy+Analysis&format=json&callback=?',
'http://fantasyfootballpundits.com/football/?category=The+Gameweek+Preview&format=json&callback=?',
'http://fantasyfootballpundits.com/football/?category=In+The+News&format=json&callback=?',
'http://fantasyfootballpundits.com/football/?category=Pundits+Team&format=json&callback=?',
'http://fantasyfootballpundits.com/football/?category=Shrewd+Moves&format=json&callback=?',
'http://fantasyfootballpundits.com/football/?category=Shrewd+Moves&format=json&callback=?',
'http://fantasyfootballpundits.com/football/?category=Guest+Fantasy+Articles&format=json&callback=?'
];
urls.forEach(function (u) {
$.getJSON(u).done(function (data) {
var current = data.items[0];
if (current != null) {
var post = '<li><a href="http://fantasyfootballpundits.com' + current.fullUrl + '"><img src= "' + current.assetUrl + '" alt ="' + current.filename + '"></a></li>';
$('ul.slides').append(post);
}
});
});
});