Same page position with CSS?

Out of context: Reply #1

  • Started
  • Last post
  • 5 Responses
  • Nairn0

    The trick here is that your 'infinitely-scrolled page' doesn't really exist until it's generated by whatever script you're using, so the browser doesn't have anywhere to link 'to' when its controls are used. In an ideal world the generated version of your page would've been cached so that browser navigation would return to where it came from, but I don't thin kthat's guaranteed.

    So, either you have some hard-coded HTML anchors in your no longer quite 'infinite scroll' page, or you create anchors using Javascript which can then be passed as a variable back to another script which can generate the scroll from that point.

    Ideally you'd have a one-stop shop infinite scroll script that does all of this for you in one package.

    • On the other hand, I've not really had my head in this space properly for a while, so perhaps I'm just talking utter shit.Nairn
    • This looks like it does what yo uwant:
      https://infinite-scr… - see 'features', 'back-button friendly'
      Nairn
    • haha no that sounds about right... its seems once you go back, it has to load all over again.Raybandana
    • close :)sted
    • lol meanwhile Nairn posted a proper link :Dsted

View thread