Forums

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

Home Forums JavaScript Jquery masonry + history plugin

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41503
    ralphsmouse
    Participant

    My masonry layout doesn’t hold when using the back button.

    When I click the back button from a permalink, it sends me back to the top of the page.

    I understand this is a problem for jquery.

    What’s a good way to implement a [history plugin](http://www.jquery4u.com/plugins/history-back-button-plugins/ “history plugin”) to my code?

    #119146
    tylerhq
    Member

    It depends on if you’re using infinite scroll. Assuming it’s standard Masonry, with all elements in a page on load, you could easily add/read a cookie that stores their vertical location in the document. You can use HTML5 local storage to keep that value, as well.

    #137883
    ralphsmouse
    Participant

    Wow, how could I go about doing that?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.