The site is slow: optimize the Javascript code

  • 2
  • Problem
  • Updated 4 years ago
Just like the title said
Photo of Alin

Alin

  • 165 Posts
  • 477 Reply Likes

Posted 4 years ago

  • 2
Photo of Jon

Jon, Community & Customer Services

  • 4985 Posts
  • 3666 Reply Likes
Hi Alin,

Can you be a bit more specific please?  Is general page-loading slow, or specific site elements?  Did this problem start recently? If so roughly when.
Photo of Juneau

Juneau

  • 43 Posts
  • 92 Reply Likes
Hi Jon, 
I'm not sure if this is java problem but there's an issue for playing my library with spotify. It would create a minute gap between each played song. What could cause this? In my spotify client I've got 0s gap between songs set up. This have never happened to me until today. 
Photo of Hornswoop

Hornswoop

  • 173 Posts
  • 293 Reply Likes
For me it's page-loading slow.. going on 3 weeks now.
Photo of Andreas_Wotte

Andreas_Wotte

  • 1007 Posts
  • 1397 Reply Likes
I'm also not sure about the Last FM Java script as the reason (imagenable are also the scripts of third parties), but the page seems to be - subjectively perceived - slow since a longer time. Sorry for missing specifications.
(Edited)
Photo of ErikaKarjohn

ErikaKarjohn

  • 5 Posts
  • 0 Reply Likes
I don't get it slow.Site is enough first.
Photo of tapenoon

tapenoon

  • 148 Posts
  • 236 Reply Likes
it seems alright to me? same as always. 
Photo of ErikaKarjohn

ErikaKarjohn

  • 5 Posts
  • 0 Reply Likes
I'm confused.I don't face this problem.All site performed same to your ISP?or only this site?
Photo of Hornswoop

Hornswoop

  • 173 Posts
  • 293 Reply Likes
Only this site.
Photo of ErikaKarjohn

ErikaKarjohn

  • 5 Posts
  • 0 Reply Likes
then I think you should clear cache from the browser.It's work fine in my end :)
Photo of Alin

Alin

  • 165 Posts
  • 477 Reply Likes
There are loads of JS scripts and other elements that make the pages seem sluggish and way slower than few months ago. Load any Last.fm page with the Inspect Element activated and you'll see how ridiculously un-optimized is your site:  http://i.imgbox.com/M4E6CgVp.png

Absolutely terrible.
Photo of Alin

Alin

  • 165 Posts
  • 477 Reply Likes
Any other site way more complex than yours (e.g. Facebook) works just fine. The problem is yours. Cut most of the scripts, optimize the remaining ones and put them in less files (less files = less waiting time for transfering each file from servers to clients).
(Edited)