Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Image Galleries > Image Tools

    Foresight.js 2.0.0

    download button


    Downloads: 191  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Adam Bradley | More scripts
    www.cdnconnect.com
    MIT License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    JavaScript
    May 13th, 2012, 14:54 GMT
    C: \ Image Galleries \ Image Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    Foresight.js description

    This JavaScript library detects if a device is capable of viewing high-resolution images, and presents them when available

    It sniffs the UA for any device capable of showing HD images and loads the proper image for that device.

    It modifies context image requests, specifically the img src attribute, but the server does the image resizing.

    The library must be used only for inline images, while for background images, CSS 3 media queries should be used since they're faster and natively implemented.

    Here are some key features of "Foresight.js":

    · Request hi-res images according to device pixel ratio
    · Estimates network connection speed prior to requesting an image
    · Does not use device detection through user-agents
    · Does not make multiple requests for the same image
    · JavaScript library and framework independent (ie: jQuery not required)
    · Cross-browser and cross-platform
    · Image dimensions set by percents will scale to the parent element's available width and device pixel ratio
    · Fully customizable through global configuration options and individual img attributes
    · Default images will load without JavaScript enabled
    · Minifies down to roughly 6K

    Requirements:

    · JavaScript enabled on client side



    TAGS:

    image quality | HD graphics | image source | quality | source | image

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM