- Joined
- Jan 22, 2014
- Messages
- 1,045
- Reaction score
- 299
If your computer produces hot air while displaying this site and basically doing nothing, this has two reasons:
CPU usage on Firefox (31 and several older versions) is increased by over 12% with one of these features active. If I enable JavaScript on my mobile browser, my phone will heat up and eat battery. Similar behavior was reported for Chrome in an older thread.
tl;dr: Performance should come before shiny blingbling, I'm retrofitting the site client-side.
Edit: By the way, there's no need to use JS for a thing as simple as a marquee. CSS animations have been araound for ages, and especially with this site's target audience the market share of browsers that can't handle them should be pretty much zero. They have the advantage that they don't require constant DOM updates and that browsers can optimize them heavily (rendering them on the GPU, for instance).
- The marquee at the bottom. You can easily get rid of it by adding the following URL to a content blocker.
Code:
assets2.star-made.org/assets/xenforo-7d6cf8296aee6b22001bf1b707c04934.js
- The countdown timer. To get rid of that a little bit more effort is necessary. Install a userscript addon (Greasemonkey on Firefox), create a new userscript and paste the following lines:
JavaScript:// ==UserScript== // @name SMDock // @namespace wat // @description Reduce CPU usage on StarMade Dock // @include http://starmadedock.net/forums/ // @version 1 // @grant none // ==/UserScript== $('#countdown').remove()
CPU usage on Firefox (31 and several older versions) is increased by over 12% with one of these features active. If I enable JavaScript on my mobile browser, my phone will heat up and eat battery. Similar behavior was reported for Chrome in an older thread.
tl;dr: Performance should come before shiny blingbling, I'm retrofitting the site client-side.
Edit: By the way, there's no need to use JS for a thing as simple as a marquee. CSS animations have been araound for ages, and especially with this site's target audience the market share of browsers that can't handle them should be pretty much zero. They have the advantage that they don't require constant DOM updates and that browsers can optimize them heavily (rendering them on the GPU, for instance).
Last edited: