-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling loading pages via XHR #116
Comments
Ahh, right. That functionality is provided by pjax which docpress-base uses. The fix might be to simply not load URL's that start with |
Also I see you're using docpress-rsc haha. I take it you weren't a fan of the default theme? |
@rstacruz: just wanted to mention, the real life example wouldn't work any more, now the domain name is http://tydel.js.org, while demo urls are at https://fahad19.github.io/tydel-demos/counter Your
Sounds good for me 👍 . Even though I would not be affected by this issue any more, but someone else might face it sometime. |
bump, looks like I forgot this. |
Related issue #138 |
I think that this is a good intermediate solution: https://github.com/Easyfood/pageAccelerator#how-to-use adding |
pageAccelerator looks lightweight, but currently I prefer use http://instantclick.io/ because you can add blacklisting links easily:
http://instantclick.io/blacklisting Also it supports blacklisting dynamically. |
I haven't seen instantclick before but the premise looks very interesting. |
First of all, many many thanks for this awesome project! It looks so beautiful, I couldn't resist myself from using it for a new project of mine. Really well done!
The issue
I came across a very rare issue. When there are links for the same domain, but not of the docs itself, there is an XHR failure, and the UI keeps on loading.
Real life example
For example, in this page https://fahad19.github.io/tydel/examples/counter/index.html, if you click on Source, it will not load.
The docs are hosted in
https://fahad19.github.io/tydel/
, and I am trying to link tohttps://fahad19.github.io/tydel-demos/
. GitHub Pages of two separate repos.Possible solution
I believe, if the linked URL does not start with
https://fahad19.github.io/tydel/
(with an ending slash), we should not try to load it via XHR and just go to that URL directly.The text was updated successfully, but these errors were encountered: