wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Navbar reloads every time a new page is opened

Open NehaSan16 opened this issue 1 year ago • 2 comments

https://github.com/frappe/wiki/assets/139349833/e12432b5-5ebb-4f77-9a81-c2331711ece5

@BreadGenie I know you're not focussed on Wiki right now, but this is a buggy issue. Why do we reload and scroll the navbar every time a page opens? It leads to a poor reading experience. Can we please look into this?

CC: @rmehta

NehaSan16 avatar May 07 '24 17:05 NehaSan16

Why do we reload and scroll the navbar every time a page opens? It leads to a poor reading experience. Can we please look into this?

I agree with it being poor UX. This happens because Wiki is a static site. So everytime you navigate to a different page it'll load all the HTML again and again. We are doing it for a good reason which is SEO. This particular issue could be solved by either a Vue SSR rewrite or by adding client side routing using a router library (but I reckon it could impact SEO (take it with a pinch of salt though)). Both needs a good chunk of time to implement.

I'll take a look at this again once I make some time.

BreadGenie avatar May 07 '24 18:05 BreadGenie

Thanks for acknowledging. Let us implement the fix.

Most of the traffic we get on the docs is directly from google search... so it might not impact SEO.

Most other docs are significantly easy to navigate. eg. https://docs.stripe.com/payments

NehaSan16 avatar May 29 '24 08:05 NehaSan16