Problem in firefox when loading different pages

33 views
Skip to first unread message

Benoit Leybaert

unread,
Feb 27, 2020, 7:32:45 AM2/27/20
to sphinx-users
Hi,

I have a problem with a svg logo set as the html_logo in conf.py :

- In firefox, logo is taking all the page to load then resize instantly, or the text is loading without css during a split second :

Peek_27-02-2020_FIREFOX.gif
























- Yet in Chromium, it works as expected :

Peek_27-02-2020_CHROME.gif

I can't seem to find the root of the problem... Would this be a bug with firefox, with a certain version of sphinx, or bad configuration ?


Thanks,

Benoit Leybaert

unread,
Feb 27, 2020, 7:41:51 AM2/27/20
to sphinx-users
I want to add, after searching more, that this is probably caused by a custom css sheet.

in conf.py :
def setup(app):
   app.add_stylesheet("styles.css")
And I have a "styles.css" file in "_static" folder.
everything seems OK but firefox is apparently having trouble taking the style before loading everything ?

Komiya Takeshi

unread,
Mar 1, 2020, 10:52:58 AM3/1/20
to sphinx...@googlegroups.com
Hi,

Could you let us know a URL of the page? Or please make a minimal example. It is difficult to help you without reproducing the problem.

Thanks,
Takeshi KOMIYA

2020年2月27日(木) 21:41 Benoit Leybaert <benoit....@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/1a101a26-67f8-4b91-b0e2-da6a61f9d362%40googlegroups.com.

Benoit Leybaert

unread,
Mar 4, 2020, 3:33:45 AM3/4/20
to sphinx-users
Hi,

Thanks for replying.

I fixed my problem.
The cause was indeed in `conf.py`
def setup(app):
   app.add_stylesheet("styles.css")
To use custom css in addition to the theme css. I got it from a stackoverflow comment :P it works well in chrome but not firefox. It might be because of the sphinx version though (2.4.5), I have not tried an older one.

Since using a different method (html_theme_path and using my own theme derived from the rtd theme), this issue disappeared.


Le dimanche 1 mars 2020 16:52:58 UTC+1, Komiya Takeshi a écrit :
Hi,

Could you let us know a URL of the page? Or please make a minimal example. It is difficult to help you without reproducing the problem.

Thanks,
Takeshi KOMIYA

2020年2月27日(木) 21:41 Benoit Leybaert <benoit....@gmail.com>:
I want to add, after searching more, that this is probably caused by a custom css sheet.

in conf.py :
def setup(app):
   app.add_stylesheet("styles.css")
And I have a "styles.css" file in "_static" folder.
everything seems OK but firefox is apparently having trouble taking the style before loading everything ?

Le jeudi 27 février 2020 13:32:45 UTC+1, Benoit Leybaert a écrit :
Hi,

I have a problem with a svg logo set as the html_logo in conf.py :

- In firefox, logo is taking all the page to load then resize instantly, or the text is loading without css during a split second :

Peek_27-02-2020_FIREFOX.gif
























- Yet in Chromium, it works as expected :

Peek_27-02-2020_CHROME.gif

I can't seem to find the root of the problem... Would this be a bug with firefox, with a certain version of sphinx, or bad configuration ?


Thanks,

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages