{#if can_display && !loading && src === ''} {:else if loading} {:else if can_display && src !== ''} {#if image} img {:else if video}