Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JMPerez/d559e0ea1aea3bae3b89a1e5ca2160ab to your computer and use it in GitHub Desktop.
Save JMPerez/d559e0ea1aea3bae3b89a1e5ca2160ab to your computer and use it in GitHub Desktop.
<div class="qtext_image_wrapper">
<!-- a canvas with a data-uri containing the thumbnail -->
<!-- which is in PNG format and very small (in this page 6x10 px) -->
<canvas class="qtext_image_placeholder portrait qtext_image zoomable_in zoomable_in_feed"
width="499"
height="874"
data-src="data:image/PNG;base64,UklGRmgAAABXRUJQVlA4IFwAAADwAQCdASoGAAoAAUAmJYgCdEf/g…iD0z/yA/5ipcuk5xHSdrS38j8CkH7s+vKeZu9EwRy0f/KPIlo/+UifdfcpiRcJiRnXXAAAAA==">
</canvas>
<!-- a lazy image with src set as data-src and master_src -->
<!-- data-src is a webp image (at least when requested using Chrome). -->
<!-- the size for data-src in this page is ~34kB -->
<!-- master_src is a png image. Its size in this page is ~177kB -->
<img class="portrait qtext_image zoomable_in zoomable_in_feed lazy_loaded lazy_loading"
src=""
data-src="https://qph.ec.quoracdn.net/main-qimg-f35a9a38e575bfbe76806b7838eba025-p"
master_src="https://qph.ec.quoracdn.net/main-qimg-f35a9a38e575bfbe76806b7838eba025"
master_w="499"
master_h="874" />
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment