Skip to content

Support for new properties #120

@brunobritodev

Description

@brunobritodev

First of all congrats on the great component and the hard work!

There is a new attribute fetchpriority="high" that has been recently introduced but is not yet supported by SeoTags. More on developer.mozilla.org

I’d like to suggest adding a Dictionary<string, string> property to the Preload class. This would allow the inclusion of arbitrary custom attributes in tags, making the component more flexible and future-proof as web standards evolve.

While having specific properties for new attributes is ideal, it can create an overhead for you to constantly update the component to keep up with every new standard. Adding a generic dictionary alongside existing specific properties would help keep SeoTags adaptable without compromising ease of maintenance.

Proposed usage example:

seoInfo.AddPreload(new Preload("https://site.com/image.jpg")
{
    Attributes = new Dictionary<string, string>
    {
        { "fetchpriority", "high" }
    }
});

What do you think? It makes sense? I’m happy to help with the implementation if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions