keep menu in view on new page load

Out of context: Reply #9

  • Started
  • Last post
  • 14 Responses
  • monNom0

    ^ Essentially there's a look-up table for the page and the content, so you click a link that activates some JS which checks for the page route and the content location. The JS changes the page with history.pushState(), gets the content from the server via ajax/json and draws it into the page via some sort of template. It's all very complex to eliminate a flashing menu.

    • but it's fucking niceESKEMA
    • it IS very nice. For SEO you need your REST endpoints to return html that your app would via JS.monNom
    • so foo.com/about returns the same result that the /about JS route would deliver.monNom
    • which makes it backward compatible with JS disabled users too.monNom

View thread