Digi

Digi style drain CPU on old PC's - Digi

Digi style drain CPU on old PC's

by rudi_br » Mon Mar 18, 2019 5:18 am

First, thanks for a great style! Keep up the nice work.

I have had some users complaining about slow performance of the board.
For example, when scrolling down a topic with many posts, the browser (any browser) will pause and update in small steps.

Up until now, I have not been able to reproduce this, I have been performance analyzing with Chrome and everything seemed ok on my PC's.

But then, the other day, I had a look at my forum with an older PC, and the issue became very clear to me. I could see the behaviour reported by users. On this old PC, I also did a performance analysis with Chrome, and found that most of the CPU time was used to loading graphics, and that even in posts without any images! The PC is an old "office" PC, not a gamer PC, so the graphics card is not great.

When switching to the standard prosilver style, the forum performes well on this old PC.

Is there anything I can do with the digi style, to reduce the heavy graphics requirements? Or should I simply recomend the affected users to switch style to prosilver in their UCP?

My forum:
https://www.astronet.dk/forum/

Edit: forum url error fixed :oops:
/Rudi Bjørn Rasmussen
rudi_br
Registered User
Posts: 23
Joined: Sun Dec 10, 2017 5:48 pm
Name: Rudi Bjørn Rasmussen
Contact:

Re: Digi style drain CPU on old PC's

by ivellios1988 » Fri Apr 12, 2019 1:15 pm

I have observed the same issue on my old Intel-based smartphone. Asus ZenFone 2, version with the most powerful processor. Forum with Digi style works painfully slow and loads in small steps, sometimes completely freezing the browser.
ivellios1988
Registered User
Posts: 13
Joined: Sat Jun 05, 2010 11:42 am
Contact:

Re: Digi style drain CPU on old PC's

by ivellios1988 » Fri Apr 12, 2019 2:02 pm

Looks like I managed to solve the problem on my forum. Apparently the problem was related to browser caching - the browser wasn't loading some files from cache, instead, it was trying to read them from the server and parse them again. Here's what I did:

1. Open: .htaccess (in forum's main directory)

2. At the end of this file, paste this piece of code:

Code: Select all

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/ico "access 1 year"
ExpiresByType text/css "access 1 day"

ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
##ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
3. Save file and upload it to your forum's directory
ivellios1988
Registered User
Posts: 13
Joined: Sat Jun 05, 2010 11:42 am
Contact: