When you use cdn, it should be cached. omniture_code.js slows down the site horribly

MXXIV·2/3/2015, 7:18:12 PM·6 votes·3,781 views

I've reported so many problems with Riot websites without achieving anything that I give this a little chance. Anyway, every time I load a page here, on boards, my browser is waiting for cdn.leagueoflegends.com. How pathetic. What's the purpose of content delivery network if it's not cached and receives cookies. And you have quite a bunch of cookies in browser - 2.1 kilobytes. Every request, even for images and other static data sends 2.1 kilobytes of useless data. All necessary?

Anyway, the file that's really slowing it is http://cdn.leagueoflegends.com/omniture/0.0.2/js/omniture_code.js I have no idea why, but it takes 21 seconds to load.

You know this is not a sandbox. You should focus on performance, not play around and making ineffective experiments. And I'm not talking just about board here but even the whole site in general.

image description

Normal site only loads the HTML once the cache has been primed.

4 Comments

RiotMaliceCity2/9/2015, 7:37:37 PM3 votes

There was a specific issue with that file on our CDN that affected players in Europe (and only Europe for some reason), but it should be resolved now. Sorry about that!

MXXIV2/3/2015, 7:31:24 PM2 votes

#Hotfix:

If you have Ad-Block+, you can block these two scripts without (according to my experience) breaking the page:

#More fix:

Further more, if you have Greasomonkey, you can add http://sandworm.cdn.leagueoflegends.com/loader.en_US.js, which is necessary, as an userscript:

// ==UserScript== // @name loader.en_US // @namespace whatever // @description Faster way to load the script for league of legends forums to work // @include leagueoflegends.com // @version 1 // @grant none // ==/UserScript== //Copy and paste script contents below (oh yeah, this forum doesn't support code block. Very nice)

Then block it too.

After this, the page loading speed changes from 33seconds to 10 seconds. While this is still very bad, it's bearable. Too bad I had to optimize the site for myself.

Mama Soraka2/6/2015, 1:28:05 PM1 votes

Yea, I can't stand the site without adblock, scriptsafe and ghostery blocking all the needless garbage. Makes it load much snappier, too.