The website is extremely slow due to the heavy use of box-shadow
Enlisted › Forums › Off-topic Chat › The website is extremely slow due to the heavy use of box-shadow
This topic contains 16 replies, has 11 voices, and was last updated by
Aggiekev 5 months, 3 weeks ago.
-
AuthorPosts
-
October 20, 2012 at 8:35 pm #31859
I humbly request that the frontend devs please replace instances of box-shadow with border-image.
To demonstrate the performance disaster wrought by box-shadow on the site, open up your browser’s built-in dev tools and paste this into the console:
var qAll = document.querySelectorAll(‘*’),
allLen = qAll.length;
for(var x=0;x<allLen;++x) { qAll[x].style.boxShadow = ‘none’; }Page scrolling goes from about 10fps to a pretty solid 30fps (YMMV depending on hardware).
The only issue to deal with is IE does not support border-image (don’t look so surprised). This includes IE10.
If the site devs don’t see fit to implement the suggested fix (but I strongly recommend doing so!), perhaps another member could distribute the JS above as a Greasemonkey script for the convenience of frequent visitors. If you have a browser plugin that enables user styles, you can alternatively use this CSS:
* {
box-shadow: none !important;
}Cheers!
October 20, 2012 at 8:45 pm #31893The formatting in my OP was stripped out, so this is why the code may be a tad difficult to read. I cleaned it up as best I could – enjoy!
October 20, 2012 at 8:53 pm #31913The forum software is also turning single quotes into fancy, curly quotes, which breaks JavaScript. In order for the first code snippet to work, you need to delete them and replace with the default single-quote character on your keyboard.
October 21, 2012 at 7:26 am #32679October 21, 2012 at 8:07 am #32722Regarding scrolling etc., the whole webseite is VERY slow on my laptop. Sometimes it even looks like the browser got stucked completely. It’s more or less the slowest website im visiting regularly, and I just keep visiting it because … it’s the Star Citizen website!
I know there are many other things to do here, but this should also be optimized in the near future.
October 21, 2012 at 11:41 am #33056ty Baryn, without box-shadow, this page is 10 times faster.
November 21, 2012 at 9:14 pm #94557November 21, 2012 at 11:22 pm #94764You might want to post this on the General Chat board since most people only read that one it seems.
November 22, 2012 at 1:13 am #94904November 23, 2012 at 12:44 am #97095I went ahead and made a chrome extension to do this. You can download it from http://starcitizen.ashita.org/files/sc-forum-speedup.crx/url
Note that once the file is downloaded, all you have to do to install it is drag the file into chrome. Afterwards, all pages in http://*.robertsspaceindustries.com/forums/* will have a small stylesheet added that adds
* {
box-shadow: none !important;
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
}
Tabula Stellarum – Vita Cognitio Est
A Guild For Explorers & Traders – http://starcitizen.ashita.org/November 23, 2012 at 7:12 pm #98931Not to steal Signo’s thunder (bravo mate!), but I’ve made a Chrome extension that works across all of robertsspaceindustries.com (because the whole site suffers from this problem).
http://www.smallfiles.org/download/3789/rsi-site-speedup.crx.html
November 23, 2012 at 7:19 pm #98944November 23, 2012 at 9:33 pm #99236No thunder to be stolen, friend. And you’re right. They use it elsewhere and it results in slow/stuttered scrolling. I find it significantly worse on the forums though.
Tabula Stellarum – Vita Cognitio Est
A Guild For Explorers & Traders – http://starcitizen.ashita.org/-
This reply was modified 6 months ago by
Signo Vir.
November 24, 2012 at 8:03 pm #101931Yes, pretty is nice but web-dev also requires consideration for what will happen on the client side.
PHP/mySQL servers do not like 50K obsessive Space-Sim geeks refreshing various pages to see the updated Pledge status. The forums are on the Buddypress Plugin for WordPress, so the more optimized the WP is the better for when we all flood in after an announcement. I’ve had to resubmit posts a few times after 500 errors to get the posts to take and have found 2 posts (that I know of) are just gone after seeing it there the day before.
The web-dev(s) for RSI needs to read http://scalingwp.wordpress.com/I wonder if they’ll take CSS submissions to redress the site…
0101010GAT$>/M/S/C/E d-@ s:- a- C++ CU+++$ P+ L+>+++ E-(++)
W++ K?>— w M+>++ PS+ PE+ Y+ t* 5 X+@ R+(++)
tv b+++(++++) DI+ D— G(–) e h@ r@ y+z+November 26, 2012 at 5:59 pm #106737Note:
The Chrome Extension I posted isn’t working on the Comm-Link section, as the CIG team forces box-shadow there (with !important, for those of you who know CSS). Strange choice on their part, but there you have it.November 29, 2012 at 1:38 am #113481November 29, 2012 at 1:15 pm #114365 -
This reply was modified 6 months ago by
-
AuthorPosts
The forum ‘Off-topic Chat’ is closed to new topics and replies.




