Tee,
You could try hiding it only visually with css:

>From html5 boilerplate,

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
overflow: hidden; padding: 0; position: absolute; width: 1px; }


And then toggling that class in your click event:

 jQuery('#mini-cart-a').click(function() {
   jQuery('#mini-cart').toggleClass('visuallyhidden');
  return false;
 });


- Jon



On Wed, Jun 15, 2011 at 9:30 PM, tee <[email protected]> wrote:

>
> David,
> thanks.
> I didn't use your code because I didn't think my code has any problem. This
> seems to be occurring in IE only and related to page load - I thought it's
> IE7/8 issue but IE9 too when the site has been browsing for a while and a
> certain page is more heavier than other.
>
> I use simple show hide
>
> jQuery('#mini-cart').hide();
>  jQuery('#mini-cart-a').click(function() {
>    jQuery('#mini-cart').toggle(400);
>   return false;
>  });
>
>
> #mini-cart {position:absolute; width:300px; overflow: hidden}
>
> the hidden layer shouldn't show through during page load.
>
> tee
>
>
> >> On Jun 14, 2011, at 8:21 AM, David Hucklesby wrote:
> >>
> >>> On 6/13/11 6:31 PM, tee wrote:
> >>>> Some pages of the site loads very slow in IE7 (about 15
> >>>> seconds), and while the page was loading and (I assume) IE7 was
> >>>> still parsing the scripts, all the hidden elements shown through.
> >>>> I wander if there is a way to prevent this.
> >>>>
> >>>>
> https://picasaweb.google.com/weblist99/Jun132011?authkey=Gv1sRgCKrj4sKyz-33-gE&feat=directlink
> > [...]
>
>


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to