XF 2.0 Local installation “slow network detected. Fallback font will be used while loading”

Marcus

Well-known member
On my local install without internet access, css.php takes six seconds to load, and I receive the escaped message from this thead title in my console.

How can i disable fetching fonts from internet ? Thanks.
 
The only font that we fetch over a CDN is Font Awesome.

I think that should be locally served anyway. But there’s an option to control it in the Admin CP. should come up if you search for “awesome”.
 
1507893679203.webp
This is my setup. And these are the console messages once I disconnect from internet:

When I connect to internet, these messages are not displayed.
 
I can't reproduce the same issue.

If it's finding that fallback font then it is attempting to load the main local fonts first:
Less:
@font-face {
  font-family: 'FontAwesome';
  src: url('{$faPath}/fontawesome-webfont.eot?v=4.7.0');
  src: url('{$faPath}/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
If it's detecting a slow network at that point then there's likely some sort of issue on the local server causing it
 
FWIW xdebug doesn't play too nice with XF2 in my experience. It was causing css.php to take ~ 1 second on every pageload, ended up having to disable it (which kinda sucks because it has so many really nice tools). But, this was during the Developer Previews, so maybe something has changed since then

I use xdebug and it may be part of the slowliness I endure ...

Xf2 seems quicker live so I am content though.
 
If you run in development mode, then the LESS is recompiled on each page (as we need to watch it for changes). For me, this only takes a second or two, though it will depend on your machine.

I have just added some code that will try to use cached LESS compilation provided your templates haven't been changed since the last compilation.
 
Back
Top Bottom