         else if att?[0]?.embed_item?.type
             {href, thumb} = extractObjectStyle(att)
         else
-            return console.warn 'ignoring attribute', att
+            console.warn 'ignoring attachment', att unless att?.length == 0
+            return
         return unless href
         preload att, href
 

ifpass = (t, f) -> if t then f else pass

format = (cont) ->
    if cont?.attachment?.length
        try
          formatAttachment cont.attachment
        catch e

        console.warn 'ignoring (new) type', type


# these are images that are single segments that we detect as being
# images (not attachments).
loadInlineImages = (cont) ->
    for seg, i in cont?.segment ? []
        href = seg?.link_data?.link_target
        if isImg(href) and !seg.link_data.imgel
            preload seg.link_data, href
