What I'm trying to do is have one page that serves different markup based on if JS is enabled or not. My idea is to have a base group of content served on the intial page load. There would also be some javascript function as the page is loading that submits an ajax call to server with post data letting the server know javascript is enabled. On completion of the ajax call, the page would refreshed/served again using the post data to know JS is enabled and serve the base content along with JS enabled content. My goal is to make this as seamless as possible.
*Edit: I should add I would like to maintain one page. So the page would just be refreshed with JS content. Not redirect to a new page.
My question is two fold, is this possible, if so, could I get some direction on the code I need to achieve this?