Jump to content
BFD Calendar

Font pages exceeding my resource limit

Recommended Posts

OVH hosting is sending me a message that "We have noticed that your web hosting plan's resource quotas have been exceeded on several occasions, as the "Resource limit exceeded" chart in your Control Panel shows." 

Of course it's nice that more & more people check my Birth(+)Fact(x)Death(-)Calendar. But when I look at the page stats it shows that the fonts are generating most of the traffic (see image). I use a few .ttf fonts to get an old newspaper look on my pages. The index page has 310 views while five font pages have over 1800 views, while they're not even viewed in a way.

Any idea how to solve this? Help much appreciated. 

 

Share this post


Link to post
Share on other sites
6 hours ago, BFD Calendar said:

The index page has 310 views while five font pages have over 1800 views, while they're not even viewed in a way.

I don't understand that sentence...

Anyway, there's quite a few things you can do:

  • Use caching (.htaccess)
  • Use gzip compression (.htaccess)
  • Use a Service Worker and the Cache API to store font-files in the user's cache (JS)
  • Look for an alternative on Google Fonts. Perhaps they have the exact same font there, or a font that looks very similar. Use Google's servers (CDN) instead of your own resources.

Share this post


Link to post
Share on other sites

For some reason I couldn't upload a picture/screenshot - keeps queued forever.... The fonts are considered as pages and they are all in the top 10, although nobody sees them as a page.

Anyway these are the top pageviews in a week time:

  • /index.html - 382 - avg time 0:02:39
  • /site/templates/styles/fonts/optistymie-boldcondensed.ttf - 507 - avg time 0:00:05
  • /site/templates/styles/fonts/NobelRegular.ttf - 502 - avg time 0:00:17
  • /site/templates/styles/fonts/CentSchbookBdCnBT.ttf - 500
  • /site/templates/styles/fonts/NobelBold.ttf - 235
  • /site/templates/styles/fonts/NobelBoldCondensed.ttf - 123

Total pageviews is 32.343 - avg time 00:02:07. 

Can I find info here on how to use Google fonts in PW?

Thanks,

Share this post


Link to post
Share on other sites
On 1/15/2020 at 5:54 PM, BFD Calendar said:

Can I find info here on how to use Google fonts in PW?

You mean something along those lines?

https://developers.google.com/fonts/docs/getting_started

Google Fonts are used in your e.g. html code for the frontend, so an implementation in PW is not necessary.

By the way, have you ever read up on the great ideas @dragan has for you?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...