Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Slow requests for tiny files

Started by Clayton 4 years ago · 6 replies · 444 views
4 years ago

I have a site with a fairly lightweight home page (about 700k, half of which is webfonts). It loads quickly until it gets to the SVG images, which for some reason all have very long (proportionally) response times, and all load serially.

Screen Shot 2022-02-07 at 3.12.49 PM|690x395

As you can see in the web inspector screenshot, these SVGs are tiny, each around 1k, but combined with the response time, each one takes nearly as long to load as a webfont that is 100x the file size! Obviously this isn't making the site unusable (it still loads in under two seconds), but it does feel awfully inefficient.

I guess my main question is: Is this something I could likely fix in Grav or with htaccess, or is this something I should take up with my hosting provider?

4 years ago

@statestreet, Grav is not involved in loading image/svg files. The files are fetched straight from disk by the webserver.

If the issue is reproducible and persistent, I would first ping my hosting provider.

4 years ago

why using svg? not webp extenstion.

4 years ago

@topidesta, Would you mind explaining in what way your reply is helping OP?

4 years ago

i have no idea how to explain, just want say, i'm using .webp extentsion for an image and it's small then svg or png and just using google font or fontawesome for font.

4 years ago

You can't just replace svg with webp depending on use case. svg is vector. Webp is pixels. Completely different things.

4 years ago

@statestreet, Curious if there is any progress you could share...

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 12 hours ago
5 60 6 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 62 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 62 8 months ago
Installation & Hosting · by N, 12 months ago
3 72 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 61 1 year ago