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

Lazy-load assets #3

Open
martindrapeau opened this issue Feb 7, 2015 · 1 comment
Open

Lazy-load assets #3

martindrapeau opened this issue Feb 7, 2015 · 1 comment

Comments

@martindrapeau
Copy link
Owner

Instead of having assets (images) loaded with page (declared in the html file), would be nice to lazy load them. Trying to avoid AJAX would be best to prevent having to have a local server. Maybe just by adding a new img element to the DOM and checking when its ready. With progress and all.

@martindrapeau
Copy link
Owner Author

Underscore mixin now has methods _.loadScript() and _.loadStylesheet() for just that. Still need to document them though.

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