Hi. On webhost 10x slower than en.wikipedia.org ( profile http://www.webpagetest.org/result/140819_AJ_10H0/ ), the resource loader insists to load literally everything before showing anything visitors can see. This seems bad. (for the critical rendering path http://www.webperformancetoday.com/2014/08/12/10-fastest-ecommerce-sites-can-teach-us-web-performance/ ).
Is it possible to use two resourceloaders? So that after the first loader finishes, the visitors can see something? Can I set priority for loading resources?
As a side note, I deleted lines in resource loader, and manage to cut the dom elements down to 170. But still, it takes 5 seconds to load. (without the semantic part was like 3 seconds near midnight). I also followed http://www.mediawiki.org/wiki/Manual:Performance_tuning.
-- View this message in context: http://wikimedia.7.x6.nabble.com/Resourceloader-on-Webhost-10x-Slower-tp5034... Sent from the WikiMedia General mailing list archive at Nabble.com.
MW already tries to load only very crucial resources from <head>, the rest is loaded from the bottom. From the looks of your wiki, every load.php request takes a considerable amount of time. Do you have caching[1] (most importantly, object caching) enabled? And if so, how fast is disk access (necessary for stat calls)?
---- [1] https://www.mediawiki.org/wiki/Manual:Caching
On Wed, Aug 20, 2014 at 2:33 AM, Alteil Analysis alteilanalysis@gmail.com wrote:
Hi. On webhost 10x slower than en.wikipedia.org ( profile http://www.webpagetest.org/result/140819_AJ_10H0/ ), the resource loader insists to load literally everything before showing anything visitors can see. This seems bad. (for the critical rendering path < http://www.webperformancetoday.com/2014/08/12/10-fastest-ecommerce-sites-can...
).
Is it possible to use two resourceloaders? So that after the first loader finishes, the visitors can see something? Can I set priority for loading resources?
As a side note, I deleted lines in resource loader, and manage to cut the dom elements down to 170. But still, it takes 5 seconds to load. (without the semantic part was like 3 seconds near midnight). I also followed http://www.mediawiki.org/wiki/Manual:Performance_tuning.
-- View this message in context: http://wikimedia.7.x6.nabble.com/Resourceloader-on-Webhost-10x-Slower-tp5034... Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I found that I didn't use $wgMessageCacheType, added it, then rerun profile. It was a bit slower ( with msg cache http://www.webpagetest.org/result/140819_SE_11GM/ , without http://www.webpagetest.org/result/140819_AJ_10H0/ ) hmm. I guess the diskspeed is slow. Before I cut down resourceloader.php, the site took like 15 seconds to load.
By the way, I think jQuery took like a chunk of time. I was trying to make my site load it from jquery.com, so that visitors can download my site and jquery simultaneously. (I heard that browsers usually only download a single object from the same url at any moment)
That didn't go well enough. When I put jquery.com url into resource loader, website load a bit faster. But it didn't load simultaneously. Putting it into index.php, sometimes make the whole cite go crazy wait of 50 seconds, as the whole wiki wait for jquery (or 3 seconds if it loads before everything else). Putting it into localsetting by jquery discussion http://www.mediawiki.org/wiki/Talk:JQuery#How_to_disable_load_.2Fresources.2Fjquery.2Fjquery.js_in_mediawiki1.17.3F_6077 make the site go crazy even more frequently.
$wgMainCacheType = CACHE_ACCEL; $wgMessageCacheType=CACHE_ACCEL; $wgCacheDirectory = "$IP/cache"; $wgParserCacheExpireTime = 2592000; $wgParserCacheType = CACHE_DB; $wgResourceLoaderMaxage = 2592000; $wgSessionsInObjectCache = true; # optional $wgSessionCacheType = CACHE_DB; # optional $wgEnableSidebarCache = true;
$wgUseGzip = true; $wgDisableCounters = true; $wgMiserMode = true; $wgJobRunRate = 0.5;
-- View this message in context: http://wikimedia.7.x6.nabble.com/Re-Resourceloader-on-Webhost-10x-Slower-tp5... Sent from the WikiMedia General mailing list archive at Nabble.com.
mediawiki-l@lists.wikimedia.org