Discourse only loads header on first visit, have to refresh to get the full application to load

Afternoon all, been stuck on this for a few days. My wack-a-mole approach is not working and haven’t been able to find a post on meta that directly addresses this problem. If I’m missing it, please share the link.

At any rate, has anyone had issues with Discourse only loading the header on mobile devices? I’ve tried turning off mobile layouts, setting “Latest” for the default view and a laundry list of other things.

Here’s a quick look at the issue.

Can you reproduce in Safe Mode ?

It looks like you have a broken theme customization.

Let me give it a shot.

Can’t reproduce in safe mode because when you go to safe mode it immediately refreshes the app and loads the home screen properly.

That’s because

So you should fix that.

Привет @pfaffman, я всё ещё работаю над этим. Я проверил все свои переопределённые настройки и сбросил те, которые могли вызывать проблемы, но безрезультатно. Проверил все плагины, чтобы убедиться, что ни один не сломан. Проблем там нет.

          - git clone https://github.com/discourse/discourse-oauth2-basic.git
          - git clone https://github.com/discourse/discourse-patreon.git
          - git clone https://github.com/discourse/discourse-plugin-linkedin-auth.git
          - git clone https://github.com/discourse/discourse-plugin-office365-auth.git
          - git clone https://github.com/discourse/discourse-policy.git
          - git clone https://github.com/discourse/discourse-push-notifications.git
          - git clone https://github.com/discourse/discourse-saved-searches.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-staff-notes.git
          - git clone https://github.com/discourse/discourse-tooltips.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/communiteq/discourse-sitemap.git
          - git clone https://github.com/angusmcleod/discourse-quick-messages.git
          - git clone https://github.com/angusmcleod/discourse-locations.git
          - git clone https://github.com/angusmcleod/discourse-question-answer.git
          - git clone https://github.com/angusmcleod/discourse-ratings.git
          - git clone https://github.com/angusmcleod/discourse-topic-previews.git
          - git clone https://github.com/angusmcleod/discourse-layouts
          - git clone https://github.com/procourse/discourse-full-screen-videos-plugin.git
          - git clone https://github.com/procourse/procourse-static-pages.git
          - git clone https://github.com/featheredtoast/discourse-pwned-passwords.git
          - git clone https://github.com/iunctis/discourse-formatting-toolbar.git
          - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
          - git clone https://github.com/jgujgu/discourse-blocks.git
          - git clone https://github.com/LeoDavidson/discourse-reset-bump.git
          - git clone https://github.com/rux-pizza/discourse-awesome-bbcodes.git
          - git clone https://github.com/sekhat/discourse-yuml.git
          - git clone https://github.com/synweap15/discourse-voice-record.git
          - git clone https://github.com/unfoldingWord-dev/discourse-mermaid.git
          - git clone https://github.com/jomaxro/discourse-plugin-site-setting-override.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/cpradio/discourse-plugin-replygif.git
          - git clone https://github.com/merefield/discourse-onebox-assistant.git

Поскольку ситуация именно такова, я провёл аудит в Chrome и получил следующие результаты. Видите ли вы здесь какие-либо полезные подсказки?

Попытался удалить все мои пользовательские CSS-стили. Безрезультатно. :neutral_face:

Откройте инструменты разработчика в браузере и проверьте вкладку «Консоль» на наличие предупреждений или ошибок.

Все 200 без ошибок в консоли. Недавно обнаружил множество подобных проблем в журнале сайта… теперь осталось только научиться читать такой объём JavaScript.

Как уже упоминали @falco и @pfaffman, у вас проблема с темой или её настройкой. Где-то в скриптах темы есть синтаксическая ошибка. Возможно, вам потребуется поочерёдно удалять компоненты темы или установленные пользовательские темы, чтобы определить, где именно возникает проблема.

Вот оно. Компонент Easy Footer был причиной всего этого. Гррр. ха-ха

Спасибо вам!!