Preload in the background of 2mb

Preload in the background of 2mb

How to load the page only when such image is loaded?
I tried: 

  1.  $ ('# IDdaImagem'). On ('load', function () {
          / / 'Code paragraph load a page / content'
    })



and the image still does not work after being charged ...

is a background image, and use a jQuery plugin to open in other resolutions, the backstretch, it uses a div with class backstretch, as I carry this Background with 2mb before the site content?


i test this and work, but not the item that I give show, appearing at the time, it works only in the alert.

  1. <script> $('.backstretch img').load(function() { alert('done loading image'); $("#corpo").show(); }); </script>

--------------------------------------


Como carregar a página apenas quando tal imagem é carregada?
Tentei :

  1. $ ('# IDdaImagem'). On ('load', function () {
         / / 'Código parágrafo CARREGAR uma page / Conteúdo'
    })


e não funciona a imagem continua sendo carregada depois...

é uma imagem de fundo, e uso um plugin jQuery para abrir em outras resoluções, o backstretch, ele usa uma div com classe backstretch, como eu carrego esta imagem Fundo com 2mb antes de o conteúdo do site?


eu testei isso e funciona, mas não no elemento que eu vou dar show, só no alert.

  1. <script> $('.backstretch img').load(function() { alert('done loading image'); $("#corpo").show(); }); </script>