You are not logged in.

#1 2020-05-03 09:00:47

s8evq
Member
Registered: 2018-07-18
Posts: 11

Slow load speed, perhaps because we're using a lot of svg files?

Hello,
This page on the wiki is loading quite slow: https://wiki.openstreetmap.org/wiki/Roa … in_Belgium

Could it be because of the large amount of svg files used?

If so, is there a solution? For example, batch converting to png? I wanted to ask here first, before trying something myself wink

Thanks.

Offline

#2 2020-05-05 21:24:24

Tigerfell
Member
Registered: 2018-09-01
Posts: 82

Re: Slow load speed, perhaps because we're using a lot of svg files?

Hi,

I think the wiki system converts the files to PNG already like this one https://upload.wikimedia.org/wikipedia/ … 1a.svg.png. I also observed the slow loading speed, but I do not know how to fix that.

Tigerfell

Offline

#3 2020-05-06 20:16:17

s8evq
Member
Registered: 2018-07-18
Posts: 11

Re: Slow load speed, perhaps because we're using a lot of svg files?

Do you think links like "https://upload.wikimedia.org/wikipedia/ … 1a.svg.png" are pre generated and stored somewhere? Or converted on demand?
I might try to edit our wiki page and replace all svg's with 80px png file. I see if I can batch edit somehow. If it doesn't make a difference, I could always revert my wiki edit.

Offline

#4 2020-05-07 11:37:36

Tigerfell
Member
Registered: 2018-09-01
Posts: 82

Re: Slow load speed, perhaps because we're using a lot of svg files?

I think the images are pre-generated. The setup is explained at https://www.mediawiki.org/wiki/Manual:I … ration#SVG. OSM wiki uses Imagick, which is probably not the best choice in terms of rendering speed anymore.

In the case of the street signs, the files are fetched from WM Commons once, because the wiki uses it as one file repository (among its own one). This feature is called "InstantCommons" and it is documented at https://www.mediawiki.org/wiki/InstantCommons. According to the docs, once, but the HTML of the wiki page rather looks like it needs to access WM Commons' rendered PNG files at every single request.

Offline

#5 2020-05-08 04:49:03

escada
Moderator
Registered: 2011-08-13
Posts: 1,743

Re: Slow load speed, perhaps because we're using a lot of svg files?

It seems that the base html takes 42 seconds to load. The images are loaded fast.
But, when I reload the page (even with client-side caching off), Chrome seems to load the page fast. Is it possible that the server has to construct the page the first from different HTML-blocks and that this construction is slow?

Offline

#6 2020-05-11 14:27:17

s8evq
Member
Registered: 2018-07-18
Posts: 11

Re: Slow load speed, perhaps because we're using a lot of svg files?

So Escada, you think the images have nothing to do with the load speed? Thanks for having a look.

Offline

Board footer

Powered by FluxBB