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
  • #41503

    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]( “history plugin”) to my code?


    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.


    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.