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

Erro de "O layout foi forçado antes que a página fosse totalmente carregada." ao mudar de página #68

Open
guites opened this issue Sep 24, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed website Ajustes e melhorias no portal

Comments

@guites
Copy link
Collaborator

guites commented Sep 24, 2024

Eu não tenho certeza se esse erro ocorre em todas as mudanças de página, mas acessando no firefox pelo meu desktop o erro é bem gritante.

Basicamente sempre que você navegar pra uma página diferente, vai ter um breve momento (dependendo da conexão de internet vai ser um flash rapidão, mas caso a net esteja lenta vai ficar bastante tempo) em que a estilização da página ainda não carregou.

exemplo-flash-layout-forcado.mov

O que pode ser / direcionamento inicial

Muito provavelmente tem a ver com o carregamento do arquivo de css (e talvez os arquivos de .js). Todas as páginas carregam o stylesheet (arquivo .css) do halfmoon (https://www.gethalfmoon.com/) e também o arquivo de javascript do bootstrap.

Os arquivos são carregados através do template base.html (ver https://github.com/guites/cinemaempoa/blob/implement-flask-backend/flask_backend/templates/base.html) e estão salvos no diretório static (ver https://github.com/guites/cinemaempoa/tree/implement-flask-backend/flask_backend/static).

@guites guites added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers and removed good first issue Good for newcomers labels Sep 24, 2024
@guites
Copy link
Collaborator Author

guites commented Sep 24, 2024

Testando aqui, o erro parece acontecer apenas no firefox.

@guites guites added the website Ajustes e melhorias no portal label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed website Ajustes e melhorias no portal
Projects
None yet
Development

No branches or pull requests

1 participant