Skip to content
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

Refresh page doesn't load correctly the CSS style while loading files #9

Closed
eapl-gemugami opened this issue Nov 28, 2024 · 10 comments
Closed

Comments

@eapl-gemugami
Copy link
Collaborator

I'm trying to run a new instance, so I'm first testing locally (on Linux Mint).

When I run ./php_server.sh from the latest main branch, and visiting the following URL: http://localhost:8000/refresh?url=https://eapl.me/twtxt.txt

While the files are being loaded it seems like the style sheet is not being applied:
Capture d’écran du 2024-11-28 15-55-38

And after the page finishes loading the files, it changes briefly to the usual CSS style before redirecting to the home page:
Capture d’écran du 2024-11-28 15-58-37

Is that expected for the latest state of main or do I have a bad configuration from my side? Thanks!

@sorenpeter
Copy link
Owner

After refresh it is suppose to redirect to the previous page via JavaScript back.

But I'm not sure why the CSS is not loading. if you inspect the page and look for the CSS links in the HTML does theses links works?

<link rel="stylesheet" type="text/css" href="/timeline/libs/simple.css">
<link rel="stylesheet" type="text/css" href="/timeline/libs/timeline.css">
<link rel="stylesheet" type="text/css" href="/timeline/custom.css"> 

@sorenpeter
Copy link
Owner

Ah I think I had the same problem when running the server locally, but no issues when deploying online

@eapl-gemugami
Copy link
Collaborator Author

Ok, I'll try on the server to see if it works differently, thanks!

@eapl-gemugami
Copy link
Collaborator Author

Trying in the server: https://eapl.mx/timeline/refresh?url=https://eapl.mx/twtxt.txt

The page behaves similarly than on local. Keeps loading for a few seconds (I assume it's loading all the files) and briefly shows the full progress bar before redirecting to /profile.

I don't know how to solve it yet, showing progress after each file is loaded.

@sorenpeter
Copy link
Owner

I can't test it, since i don't know your password;)

I might also be something with the config of your server and php.

@eapl-gemugami
Copy link
Collaborator Author

I'm thinking of leaving an 'open' server with the latest main branch to test. 🤔

@eapl-gemugami
Copy link
Collaborator Author

You can check it with the sandbox in #18

@aelaraji
Copy link
Contributor

@eapl-gemugami Do you still have this problem? I've just given it a try and it loaded just fin.

@eapl-gemugami
Copy link
Collaborator Author

Not this exact problem with CSS although it's giving some other errors:
https://twtxt-sandbox.eapl.me/timeline/

I'll close this Issue and create a new one.

@eapl-gemugami
Copy link
Collaborator Author

One of the problems I see is the same as in #23
Another one is that the refresh is not being shown progressively, but in a 'long' reload and suddenly the page is briefly shown and then redirects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants