jr icon indicating copy to clipboard operation
jr copied to clipboard

Add History.pushState

Open xeoncross opened this issue 10 years ago • 2 comments

We should have a simple History.pushState method for new browsers wthat could load the new page via-AJAX and then gracefully replace the content and update the URL.

xeoncross avatar May 17 '14 21:05 xeoncross

Since the entire file would have to be loaded via AJAX, the primary motivation for doing this (reducing page size) is gone. What advantage would this provide, and is it worth the complexity?

aravindet avatar May 20 '14 15:05 aravindet

Actually, there are two things this would help with. First, using History.pushState would increase the page render time as the DOM would not re-render the entire chrome. Second, it would remove the FOUC a new page load might still have even with the caching we are doing.

We only need to implement this for modern browsers (the only people who even care about FOUC) so the code to implement this shouldn't be more than a few dozen lines.

xeoncross avatar May 20 '14 15:05 xeoncross