Skip to content

Stop updating history when prev() is called #207

@Alpine418

Description

@Alpine418

Hi,

this is my code, most important are the last four lines...

var ias = $.ias({
    container: 'section ul.grid',
    item: 'li',
    next: '#pagination .next',
    delay: 0,
    negativeMargin: 1000
});
ias.extension(new IASPagingExtension());
ias.extension(new IASSpinnerExtension({
    src: WB_TEMPLATE_URL + '/img/loading.gif',
    html: '<p class="text-center"><img src="{src}"/></p>'
}));
ias.extension(new IASHistoryExtension({
    prev: '#pagination .previous'
}));
ias.on('ready', function () {
    $('#pagination').hide();
    this.prev();
});

Check the bevaviour on my page too:
http://www.free2play-games.de/games/t/browsergames/

If you have scrolled a bit (as example to page 3), visited a detailpage of a game and then going back, the page number is changing in the URL (History API) to the last previous loaded page. But the behaviour should work like this: Loading the previous pages in the background but not changing the URL, because the user is landing on page 3 and not page 1

Is it possible to set a param like this.prev(true) to load the previous pages without changing the URL?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions