Skip to content

Grunt-Rev with data-src #22

Open
Open
@borisschapira

Description

@borisschapira

Hi, I'm using some lazy/responsive loading scripts, such as https://github.com/BBC-News/Imager.js/ for tag creation at execution.

"Image" creation is done through <div> and data-src attribute. But rev does not alter those...

Before or after rev, I have :

<div style="width: 240px">
    <div class="delayed-image-load" data-src="http://placehold.it/{width}" data-alt="alternative text"></div>
</div>

Is there a way to configure rev to alter the HTML of my pages, modifying not only src but also data-src (or another data-* attribute).

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