jshackles / Enhanced_Steam

Enhances the Steam Experience
www.EnhancedSteam.com
GNU General Public License v3.0
1.32k stars 195 forks source link

[Suggestion] Performance improvement #1547

Closed Revadike closed 6 years ago

Revadike commented 6 years ago

Since I have a extensive market history, your cool little "Market Transactions"-panel takes forever to load, if it loads at all. I've checked the network tab in developer tools and a lot of media queries were made while loading my market history. I've seen this happen before. It's because you're parsing HTML string in jQuery, which causes all [src]'s to be requested. There isn't a neat way to deal with this, other than removing [src] tags from the HTML string, using regular expressions. I suggest you use one of the suggestions mentioned in: https://stackoverflow.com/questions/15113910/jquery-parse-html-without-loading-images

Revadike commented 6 years ago

I can confirm that disabling images, increases performance and loading time a lot. It only took 2.5 minutes to load 43K history items, compared to loading forever.

image image image

Revadike commented 6 years ago

Thanks for the fix. I wanted to test it on my laptop, but I can't see the panel there. Any idea why I can't see the panel on my laptop?