How to prevent image load

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john_woo

    How to prevent image load

    Hi,

    I'm wondering whether it is possible that makes page load image only
    on demand.

    is there any idea?

    --
    Thanks
    John
  • Randy Webb

    #2
    Re: How to prevent image load

    john_woo said the following on 12/21/2007 1:42 PM:
    Hi,
    >
    I'm wondering whether it is possible that makes page load image only
    on demand.
    Yes.
    is there any idea?
    I sell my ideas for 100 dollars US, prepaid. How many do you want?

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

    Comment

    • MikeB

      #3
      Re: How to prevent image load


      "Randy Webb" <HikksNotAtHome @aol.comwrote in message
      news:tIKdnZNGZ_ u7jfHa4p2dnAA@g iganews.com...
      john_woo said the following on 12/21/2007 1:42 PM:
      >Hi,
      >>
      >I'm wondering whether it is possible that makes page load image only
      >on demand.
      >
      Yes.
      >
      >is there any idea?
      >
      I sell my ideas for 100 dollars US, prepaid. How many do you want?
      Phtt!!. Mine are a mere 99 bucks.
      --
      Randy
      Chance Favors The Prepared Mind
      comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
      Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

      Comment

      • Evertjan.

        #4
        Re: How to prevent image load

        MikeB wrote on 21 dec 2007 in comp.lang.javas cript:
        >>I'm wondering whether it is possible that makes page load image only
        >>on demand.
        >>
        >Yes.
        >>
        >>is there any idea?
        >>
        >I sell my ideas for 100 dollars US, prepaid. How many do you want?
        >
        Phtt!!. Mine are a mere 99 bucks.
        With this dollar?

        Ideas certainly have become cheap.


        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • Bart Van der Donck

          #5
          Re: How to prevent image load

          john_woo wrote:
          I'm wondering whether it is possible that makes page load image only
          on demand.
          >
          is there any idea?
          You have failed to formulate a concise, clear and coherent question.

          --
          Bart

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: How to prevent image load

            john_woo wrote:
            I'm wondering whether it is possible that makes page load image only
            on demand.
            >
            is there any idea?
            If you add the `img' or `object' element objects to the DOM tree yourself,
            or provide a URI for the `src' or `data' attribute of the respective `img'
            or `object' elements that does not refer an image resource at first, then
            the corresponding images will not load before that takes place or you modify
            the `src' or `data' attribute of those elements to refer to an image resource.

            In any other way that is not possible, at least not interoperably, as
            client-side DOM script support does not even have to be present, let alone
            sufficiently enabled.


            HTH

            PointedEars
            --
            Prototype.js was written by people who don't know javascript for people
            who don't know javascript. People who don't know javascript are not
            the best source of advice on designing systems that use javascript.
            -- Richard Cornford, cljs, <f806at$ail$1$8 300dec7@news.de mon.co.uk>

            Comment

            • john_woo

              #7
              Re: How to prevent image load

              On Dec 22, 9:49 am, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
              wrote:
              john_woo wrote:
              I'm wondering whether it is possible that makes page load image only
              on demand.
              >
              is there any idea?
              >
              If you add the `img' or `object' element objects to the DOM tree yourself,
              or provide a URI for the `src' or `data' attribute of the respective `img'
              or `object' elements that does not refer an image resource at first, then
              the corresponding images will not load before that takes place or you modify
              the `src' or `data' attribute of those elements to refer to an image resource.
              >
              In any other way that is not possible, at least not interoperably, as
              client-side DOM script support does not even have to be present, let alone
              sufficiently enabled.
              >
              HTH
              >
              PointedEars
              --
              Prototype.js was written by people who don't know javascript for people
              who don't know javascript. People who don't know javascript are not
              the best source of advice on designing systems that use javascript.
              -- Richard Cornford, cljs, <f806at$ail$1$8 300d...@news.de mon.co.uk>
              Thanks for the idea.
              However if the URI points to a none image source, then the web page
              will display a small red box, that doesn't look good.

              John

              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: How to prevent image load

                john_woo wrote:
                [...] Thomas 'PointedEars' Lahn [...] wrote:
                >If you add the `img' or `object' element objects to the DOM tree yourself,
                >or provide a URI for the `src' or `data' attribute of the respective `img'
                >or `object' elements that does not refer an image resource at first, then
                >the corresponding images will not load before that takes place or you modify
                >the `src' or `data' attribute of those elements to refer to an image resource.
                >>
                >In any other way that is not possible, at least not interoperably, as
                >client-side DOM script support does not even have to be present, let alone
                >sufficiently enabled.
                >[...]
                >
                Thanks for the idea.
                You're welcome.
                However if the URI points to a none image source, then the web page
                will display a small red box,
                In Microsoft Internet Explorer.
                that doesn't look good.
                True. So you could either set their `visiblity' style property to `hidden'
                or their `display' style property to `none' at first. Or you would add the
                `img' or `object' elements when they are needed. Be sure to provide a
                no-script/no-DOM alternative in any case.


                Please trim your quotes to the minimum required to retain context, as also
                explained in the http://jibbering.com/faq/


                PointedEars

                Comment

                • Thomas 'PointedEars' Lahn

                  #9
                  Re: How to prevent image load

                  Thomas 'PointedEars' Lahn wrote:
                  [...] you could either set their `visiblity' style property to `hidden'
                  ^^^^^^^^^
                  _visibility_

                  Comment

                  Working...