Skip to content

[BUG] Using imageURL for profileMode preloads it on every page #494

@danielfdickinson

Description

@danielfdickinson

Introduced in a86abf5
Will be adding PR that resolves the issue shortly.

Device: Windows 10 Desktop (at least)
Browser: (New) Edge, Firefox, Chrome, latest stable versions as of 2021-08-09
Hugo Version (not relevant, but 0.85.0 through 0.87.0, at least)
PaperMod verision: 664299c

Steps to reproduce the behavior:

Enable profileMode with a configuration such as (config.toml):

[params.profileMode]
    enabled = true
    title = "A Site Title"
    subtitle = "A subtitle"
    imageUrl= "/an-image.png"
    imageTitle = "An image alt text"
    imageWidth = 512
    imageHeight = 300

In (new) Edge, use 'developer tools' and notice the warning that /an-image.png is preloaded but not used within x seconds.

So, this does add the imageURL to the home page, unfortunately it also results in imageURL being preloaded on every page.

Expected behavior:
Image should only be preloaded on home page (where it used).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions