• Igor Drozdov's avatar
    Change the way totalNotes is calculated · 72544449
    Igor Drozdov authored
    totalNotes is only used to prerender a number of
    skeleton containers until real notes are loaded
    
    issuable.discussions makes multiple requests, so
    too expensive for this
    
    This commit uses mere notes for this and sends
    actual totalNotes number if it's less than 10;
    otherwise it sends 10 - it allows us to avoid
    bunch of skeleton prerenderings, which are not
    necessary since they doesn't fit into the whole
    screen and disappear quite fast
    72544449
noteable.rb 3.33 KB