   isRead: (entryId) ->
     feedbin.Counts.get().isRead(entryId)
 
-  precacheImages: (data) ->
-    if feedbin.data.precache_images == true
-      entries = []
-      $.each data, (entryId, entry) ->
-        if !feedbin.isRead(entryId * 1)
-          entries.push(entry.content)
-      $(entries.join())
+  preloadImages: (id) ->
+    id = parseInt(id)
+    if feedbin.entries[id] && !_.contains(feedbin.preloadedImageIds, id)
+      $(feedbin.entries[id].content)
+      feedbin.preloadedImageIds.push(id)
 
   localizeTime: (container) ->
     $("time.timeago").timeago()

        event.preventDefault()
        return


    feedSelected: ->
      $(document).on 'click', '[data-behavior~=back_to_feeds]', ->

    if entry_ids.length > 0
      $.getJSON feedbin.data.preload_entries_path, {ids: entry_ids.join(',')}, (data) ->
        $.extend feedbin.entries, data
        ids = _.keys(data)
        feedbin.preloadImages(ids[0])

  readability: () ->
    feedId = feedbin.selectedEntry.feed_id
