Skip to content

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

MXXIV··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

RiotMaliceCity3 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!

MXXIV1 votes

Thank you! I checked and really many files (though not all yet) are now cached. I'm happy to see a progress being made. I can't check the specific file until I find my filter and delete it. Since the file was useless I'm hesitant to do so.

There is still a loader.en_US.js file 215KB (1/4MB large) that is not cached. It's cache lifetime is set to 300 seconds which is, in my opinion, pretty short. I'm sure you can set a longer delay if the script is written properly and will catch missing localisation problems.

MXXIV2 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 Soraka1 votes

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

More from Boards Feedback

More by MXXIV