diff --git a/README.md b/README.md index 8893bd2..b59a529 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Non-javascript enabled/supporting browsers/devices will currently receive the im ### Optional Configuration and Optimizations: -2 options are available for external configuration: widthBreakPoint and ClientSideOnly. You can set these within a global "rwd_images" object that must be defined before rwd-images.js is loaded. +1 option is available for external configuration: widthBreakPoint. You can set it within a global "rwd_images" object that must be defined before rwd-images.js is loaded. -#### Preventing all unnecessary image requests -If you are able to guarantee that your BODY element contains - no relative references to scripts, stylesheets (link elements), objects, - or anything else that makes an http request the moment they load (in other words, relative links (anchor elements) aren't a problem), - then you can set the clientSideOnly argument to true, which will prevent all unnecessary requests from going out to the server. This is ideal, but difficult to support as a default. - - #### Server-side Optimizations A cookie is set by the script so that on subsequent page loads you can set your images an appropriate source from the start and diff --git a/rwd-images/rwd-images.js b/rwd-images/rwd-images.js index 499a3c5..7590cc2 100644 --- a/rwd-images/rwd-images.js +++ b/rwd-images/rwd-images.js @@ -9,7 +9,6 @@ //defaults / mixins var rwdi = (function(){ var defaults = { - clientSideOnly: false, widthBreakPoint: 480, htmlClass: "rwd-imgs-lrg" }; @@ -21,7 +20,6 @@ } return defaults; })(), - clientSideOnly = rwdi.clientSideOnly, widthBreakPoint = rwdi.widthBreakPoint, wideload = win.screen.availWidth > widthBreakPoint, filePath = location.href, @@ -85,13 +83,7 @@ base = null; } else{ - if(clientSideOnly){ - //more info up top, use with caution! - base.href = "javascript://"; - } - else{ - base.href = dirPath + "rwd-router/"; - } + base.href = dirPath + "rwd-router/"; } return base; })(),