luigi icon indicating copy to clipboard operation
luigi copied to clipboard

Disable Google fonts download for offline use

Open jpsnyder opened this issue 8 months ago • 2 comments

While trying out luigi in an offline environment, I noticed the interface takes a verrry long time to load. This is because it is trying to access fonts.googleapis.com.

Eventually it loads after it fails to connect. However, is there a way to configure the luigi interface to tell it we are offline?

jpsnyder avatar Apr 16 '25 18:04 jpsnyder

I noticed I get the following 404 errors. I assume they are trying to phone home?

404 GET /static/visualiser/lib/jquery-1.10.0.min.map (127.0.0.1)  0.83ms
404 GET /static/visualiser/lib/d3/dagre-d3.min.map (127.0.0.1)  0.86ms
404 GET /static/visualiser/lib/bootstrap-toggle/js/bootstrap-toggle.min.js.map (127.0.0.1)  0.89ms

jpsnyder avatar Apr 16 '25 21:04 jpsnyder

I tracked this down to the AdminLTE library. It imports the google fonts in AdminLTE.min.css https://github.com/ColorlibHQ/AdminLTE/issues/1421

I just went ahead and blocked fonts.googleapi.com on my system, which fixes the slow down for me.

jpsnyder avatar Jul 18 '25 21:07 jpsnyder