More information about the Underscore mailing list

[_] jquery - stop images loading for photo gallery

Nick Morgan skilldrick at gmail.com
Tue Feb 22 13:47:42 GMT 2011

I don't see any problem with noscript here - the whole point of noscript is
alternative content to be shown for users without js enabled.

On 22 February 2011 13:34, juan kennaugh <contact at jkennaugh.co.uk> wrote:

> Hi
>
> yeah - I was thinking of that but wondered if the call was put out to
> the browser to download the images, then once the call was put out would
> you be able to cancel that, or would it still download them in the
> background.
>
> Is there actually any downside to using noscript tags?
>
> Juan
>
>
> On 22/02/2011 12:57, Jean-Paul Gorman wrote:
> > Instead of no tags you could get your jQuery gallery to remove the images
> that you don't want to load from the DOM in the document.ready state...
> assuming you're using jQuery. For each image that you remove from the DOM
> you could then populate an object variable array
> >
> > e.g. var images = {
> >       imagestoLoadAjax : []
> > }
> >
> > $('#some-container img').each(function(){
> >
> >       images. imagestoLoadAjax.push($(this).attr('src'));
> >
> >       $(this).remove();
> >
> > });
> >
> > or something a like maybe
> >
> > JP
> >
> >
> >
> >
>
>
> --
> underscore_ list info/archive ->
> http://www.under-score.org.uk/mailman/listinfo/underscore
>



-- 
Nick Morgan
http://skilldrick.co.uk
@skilldrick <http://twitter.com/skilldrick>