Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grunt-Rev with data-src #22

Open
borisschapira opened this issue Mar 18, 2014 · 0 comments
Open

Grunt-Rev with data-src #22

borisschapira opened this issue Mar 18, 2014 · 0 comments

Comments

@borisschapira
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant