Comments (7)
The base64 image is shown until the full sized image is loaded, then they are swapped. Future reloads of the page you wont see the base64 (unless cache is disabled).
from antimoderate.
is necessary use the base64 image?
from antimoderate.
It's necessary for antimoderate to work, yeah. Otherwise you wont get the blurry image.
from antimoderate.
actually not. it works well with just paths to images
from antimoderate.
@sunstorymvp I don't follow. What do you mean?
from antimoderate.
I mean that this is enough:
<img src="/images/image.jpg" data-antimoderate-idata='/images/image_small.jpg' style="..." />
It is optional to encode small image to base64, because idata
argument just passed to src
:
https://github.com/whackashoe/antimoderate/blob/master/antimoderate.js#L248
it can be any valid src
from antimoderate.
Aha, you are right!
from antimoderate.
Related Issues (15)
- Errors in example
- support HOT 1
- Expected behavior happening in reverse. HOT 10
- Publish demo on github pages
- Info about the license unclear HOT 1
- Support
- Is this just for <img/>?
- Large image loads, small image(very briefly), then large image again
- Support background-image HOT 7
- Browser Compatibility HOT 3
- Two Requests HOT 4
- better readme / usage guide HOT 3
- Add bower integration HOT 1
- img srcset support (question) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antimoderate.