Skip to content

Images from blog posts are fetched even though they're not displayed #4

@Gagravarr

Description

@Gagravarr

If you create a blog post with an image in it, then the dashlet will cause that image to be loaded when it renders even though it isn't shown. If your blog posts tend to have a few large images in them, then this really slows down the loading of the dashboard

Step 1: Create a blog post in the site with the following contents:

<p><img src="https://www.alfresco.com/sites/www.alfresco.com/files/product-section-quotation-desktop-background-2.jpg" alt="Alfresco Image" width="1440" height="335" /></p>
<p>This is a short blog post, which starts with an image</p>
<p>Blah blah blah, more text here</p>

Step 2: Enable the Site Blogs dashlet on your dashboard
Step 3: Enable the network tab of Firebug / Developer tools / etc
Step 4: Refresh the dashboard
Step 5: See that no images are shown in the dashlet, just the text (good, expected)
Step 6: Review network tab, and see that https://www.alfresco.com/sites/www.alfresco.com/files/product-section-quotation-desktop-background-2.jpg was fetched even though it isn't displayed (bad, unexpected, potentially slow)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions