awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
imulus avatar

imulus/retinajsArchived

0
View on GitHub↗
4,381 stars·591 forks·JavaScript·MIT·14 viewsretinajs.com↗

Retinajs

Retinajs is a JavaScript library and responsive image handler that detects device pixel density to serve high-resolution images. It functions as a high-resolution image loader and manager, replacing standard image source attributes and CSS background URLs with high-density versions based on the hardware display capabilities of the user's device.

The tool manages asset resolution through both automatic filename conventions, using predefined suffixes to map low-resolution paths to high-density assets, and manual lookup tables that pair specific images with custom URLs. It also includes the ability to generate CSS media queries via preprocessor mixins for device-specific background image delivery.

The library covers a broad range of responsive image optimization capabilities, including dynamic DOM manipulation for image swapping, window-based density detection, and the scaling of CSS background images.

Features

  • High-Resolution Image Delivery - Functions as a high-resolution image loader that serves appropriate asset variants to high-DPI displays.
  • Browser Pixel Ratio Detection - Determines display pixel density by comparing window inner width to screen width using the devicePixelRatio property.
  • Filename-Convention Mapping - Maps low-resolution image paths to high-resolution assets by automatically adding a predefined string to the extension.
  • Resolution-Based Image Swappers - Dynamically swaps image source attributes and CSS background URLs based on the device's hardware display capabilities.
  • Pixel-Density Asset Delivery - Provides a utility to detect screen resolution and serve high-density image assets for improved visual clarity.
  • Source Image Toggles - Swaps image source attributes and background URLs in real-time based on the detected device pixel density.
  • Device Detection Utilities - Identifies screen properties and pixel ratios to automate the loading of resolution-optimized image assets.
  • Live Element Asset Swaps - Replaces image sources and background URLs on live elements by rewriting attributes based on the device pixel ratio.
  • Dynamic Resolution Suffixes - Automatically resolves high-resolution image paths by appending predefined suffixes to the filenames.
  • Responsive Image Loaders - Loads the appropriate image resolution based on the detected pixel density of the user's device.
  • Dynamic DPI Background Swapping - Dynamically updates CSS background image properties to serve high-resolution assets based on detected screen density.
  • Multi-Resolution Assets - Resolves multiple scales of the same asset by automatically appending suffixes to filenames based on pixel density.
  • Asset Path Mappers - Implements automatic filename conventions and manual lookup tables to map low-resolution paths to high-density assets.
  • Asset Path Overrides - Overrides automatic filename generation by using a lookup table to pair specific standard images with custom high-resolution URLs.
  • Responsive Images - Provides a comprehensive handler for managing multiple image sources to ensure high-quality display across different screens.
  • High-DPI Background Scaling - Uses media queries and scripts to deliver high-resolution background images based on display density.
  • DOM Attribute Management - Implements the programmatic updating of HTML image attributes to swap standard assets for high-density versions.
  • Dynamic DOM Manipulation - Iterates through the DOM to modify image elements and replace their sources after detecting screen density.
  • CSS Media Queries - Provides preprocessor mixins to generate CSS media queries for delivering device-specific high-resolution background images.
  • Sass Utilities - Helpers for rendering high-resolution image variants.

Star history

Star history chart for imulus/retinajsStar history chart for imulus/retinajs

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does imulus/retinajs do?

Retinajs is a JavaScript library and responsive image handler that detects device pixel density to serve high-resolution images. It functions as a high-resolution image loader and manager, replacing standard image source attributes and CSS background URLs with high-density versions based on the hardware display capabilities of the user's device.

What are the main features of imulus/retinajs?

The main features of imulus/retinajs are: High-Resolution Image Delivery, Browser Pixel Ratio Detection, Filename-Convention Mapping, Resolution-Based Image Swappers, Pixel-Density Asset Delivery, Source Image Toggles, Device Detection Utilities, Live Element Asset Swaps.

What are some open-source alternatives to imulus/retinajs?

Open-source alternatives to imulus/retinajs include: luis-almeida/unveil — Unveil is a client-side image loader and jQuery plugin designed to improve page load speeds by managing when and how… scottjehl/respond — Respond is a legacy browser compatibility layer and adaptive asset delivery tool. It functions as a CSS3 media query… apoorvsaxena/lozad.js — lozad.js is a JavaScript lazy loading library and viewport-based media loader. It serves as a dependency-free wrapper… javascript-tutorial/en.javascript.info — This project is a comprehensive JavaScript programming tutorial and language reference. It serves as a web development… bbc/imager.js — Imager.js is a responsive image loader library and asset delivery optimizer. It serves as a browser-based image… matthewhudson/current-device — current-device is a JavaScript device detection library used to identify operating systems, device categories, and…

Open-source alternatives to Retinajs

Similar open-source projects, ranked by how many features they share with Retinajs.
  • luis-almeida/unveilluis-almeida avatar

    luis-almeida/unveil

    4,103View on GitHub↗

    Unveil is a client-side image loader and jQuery plugin designed to improve page load speeds by managing when and how images are requested. It functions as a lazy loader that defers the loading of images until they enter the visible browser viewport. The tool includes a high-density display optimizer that detects retina and high-resolution screens. This allows the script to serve high-resolution image assets specifically to compatible devices for improved visual clarity. The project manages frontend assets by using viewport-based intersection detection and data-attribute mapping to swap place

    JavaScript
    View on GitHub↗4,103
  • scottjehl/respondscottjehl avatar

    scottjehl/Respond

    11,230View on GitHub↗

    Respond is a legacy browser compatibility layer and adaptive asset delivery tool. It functions as a CSS3 media query polyfill and responsive image loader, providing the necessary mechanisms to emulate modern responsive design features in outdated web browsers. The project differentiates itself by combining stylesheet parsing with dynamic style application to emulate minimum and maximum width media queries. It employs a system for selecting and serving the most appropriate image sources based on viewport width, aspect ratio, and resolution. The tool covers broad capability areas including res

    JavaScript
    View on GitHub↗11,230
  • apoorvsaxena/lozad.jsApoorvSaxena avatar

    ApoorvSaxena/lozad.js

    7,497View on GitHub↗

    lozad.js is a JavaScript lazy loading library and viewport-based media loader. It serves as a dependency-free wrapper around the Intersection Observer API to defer the loading of images and iframes until they enter the browser viewport. The project functions as a responsive image loader that optimizes page speed by delivering the most appropriate image sizes and formats based on the user's screen. It includes capabilities for responsive image optimization and layout stabilization through the use of image placeholders to prevent content shifts. The library manages the full lifecycle of deferr

    JavaScript
    View on GitHub↗7,497
  • javascript-tutorial/en.javascript.infojavascript-tutorial avatar

    javascript-tutorial/en.javascript.info

    25,344View on GitHub↗

    This project is a comprehensive JavaScript programming tutorial and language reference. It serves as a web development education resource providing instruction on modern language fundamentals, object-oriented design, and advanced asynchronous programming patterns. The resource functions as both a frontend development guide and a technical reference. It covers core language features such as closures, prototypes, promises, and typed arrays, while providing practical lessons on managing browser data and handling network requests. The content spans several key capability areas, including browser

    HTMLenglishjavascripttutorial
    View on GitHub↗25,344
  • See all 30 alternatives to Retinajs→