Comments (3)
This is a good idea, but I'd be tempted by a warning box rather than just a note.
@evilpie Is there an approximate image size in some meaningful unit (pixels?) at which we can tell people they really need to worry? Or is it a matter that always recommending via toBlobUrl makes sense?
from content.
Hello @evilpie / @hamishwillee , Can I pick this issue? Please note that, I am starting to contribute to OpenSource for the very first time :)
from content.
@evilpie Is there an approximate image size in some meaningful unit (pixels?) at which we can tell people they really need to worry? Or is it a matter that always recommending via toBlobUrl makes sense?
I'm not @evilpie but I'd suggest just always recommending toBlobUrl
. data
URIs, even at smaller sizes, mean that the browser has to keep a copy of the data as a string (as you can call getAttribute
on the image where you assign to src
, or read its src
property), which duplicates the contents of the data. Even though a 1MB data URI "works" pretty well in browsers, it's a lot of data that the browser has to copy around in memory etc. blob
URIs are always more efficient.
Of course data
URIs have their place for e.g. 1x1 pixel things but as long as any warning isn't overbearing that seems fine to me.
from content.
Related Issues (20)
- [HTML] Ignore target names which contain both \n and < characters
- Enable CHIPS in Nightly HOT 2
- Tutorial is asking you to show subtitles when the browser blocks them by default HOT 2
- misspelled word in en-US version of this page. HOT 1
- Clarify or replace "additional lines of processing" HOT 1
- Typo HOT 1
- The "Image Embed element" page supposed to contain an error HOT 1
- flex-initial element doesn't explicitly use flex: initial HOT 4
- Firefox Nightly (128) now supports ExecutionWorld MAIN HOT 2
- [HTTP] Update Image Accept Header
- [WebAPI] Syntax examples for all methods are missing target HOT 5
- Reporting API's browser compatibility is stale HOT 1
- <pre> code examples should show wrapping other elements like code and samp
- In the list example screenshot, hummus is misspelled as humous. HOT 1
- Autofocus is not supported on iOS Safari HOT 1
- No mention of important difference between `revert-layer` and `revert` HOT 2
- Various Node subclass replaceWith methods should link to each other
- <details> element, open attribute HOT 6
- terms "this", "target", "recipient", "window", "origin" appear indistinctly used HOT 2
- i dont understand but victim still
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 content.