Speed up timeline scrolling by only going up to 150 characters with summary calculation.
This commit is contained in:
parent
5abe73331a
commit
7c78d914be
|
@ -89,7 +89,7 @@ struct TimelineStringFormatter {
|
||||||
return cachedBody
|
return cachedBody
|
||||||
}
|
}
|
||||||
var s = body.rsparser_stringByDecodingHTMLEntities()
|
var s = body.rsparser_stringByDecodingHTMLEntities()
|
||||||
s = s.rs_string(byStrippingHTML: 300)
|
s = s.rs_string(byStrippingHTML: 150)
|
||||||
s = s.rs_stringByTrimmingWhitespace()
|
s = s.rs_stringByTrimmingWhitespace()
|
||||||
s = s.rs_stringWithCollapsedWhitespace()
|
s = s.rs_stringWithCollapsedWhitespace()
|
||||||
if s == "Comments" { // Hacker News.
|
if s == "Comments" { // Hacker News.
|
||||||
|
|
Loading…
Reference in New Issue