Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS flexslider pulling json loading problems

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #46528
    hputtick
    Member

    im using square space and i using json to pull images from posts in a blog to populate a felxslider on the home page.

    I have no errors, no problems with my jquery

    $(document).ready(function () {
    var urls = [
    ‘/football/?category=Captaincy+Analysis&format=json&callback=?’,
    ‘/football/?category=The+Gameweek+Preview&format=json&callback=?’,
    ‘/football/?category=In+The+News&format=json&callback=?’,
    ‘/football/?category=Pundits+Team&format=json&callback=?’,
    ‘/football/?category=Shrewd+Moves&format=json&callback=?’,
    ‘/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 = ‘

  • ' + current.filename + '
  • ‘;
    $(‘ul.slides’).append(post);
    }
    });
    });
    });

    However, I have problems with loading all 6 urls in the slider.
    1. loads WAY to slow, finally loads after everything else has loaded.
    2.it doesnt always load ALL 6 images.

    But if I load the jquery outside of the flexsider, so its just a list (li) of images, they load like normal.

    This is becoming very annoying :(

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.