* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  Reply to topic  [ 23 posts ] 
Author Message
 Post subject: jQuery slower in Firefox?
PostPosted: Sun Jun 05, 2011 5:49 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
In Chrome and IE it seems that my jQuery runs great. FireFox seems to be much slower.

Others have posted that jQuery is slow when I run a search on jQuery lag.

I guess if everything runs well in Chrome and IE I shouldn't worry too much about FF...

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Mon Jun 06, 2011 10:30 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Sep 05, 1999 2:01 am
Posts: 6377
Location: ☃☃☃
Could you give an example of something that is slower?

Keep in mind that Firefox 4 for Linux disables a lot of hardware acceleration unless you are using an nvidia graphics adapter due to buggy drivers.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 6:05 am 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
Well, here's the site with the code:
[removed link]
I know lots of people have unique problems with my site at the moment.


Right now I think jQuery lags if all images are saved in the cache, for some reason. I think it should run faster if it's in the cache. I'm still trying to imagine what's happening inside the browser.

There's nothing too extreme in this...
Code:
$(document).ready(function(){
 
         /*These initially put some divs in a hidden state*/
         $("#hello").hide();
         $(".menu").hide();
         $("#foo").hide();
         $("#hide").hide();
         /*Clear background when images load*/
         $(window).load(function(){
            $("#blacksquare").animate({width:50},"slow");
            $("#blacksquare").animate({height:0},"slow");});
 
 
 
         /*Draggable*/
         $(".menu").draggable();
 
 
         /*These hide and show stuff */
         $("#mylogo").click(function(){
            
            $("#menu1").toggle()
         });
         $(".button").click(function(){
            $("#menu1").hide();
            $(".fatdiv").fadeOut(2000);
            });
         $(".button").mouseover(function(){
            $(this).css("background-color","blue");
            $(this).css("opacity",0.4);});
         $(".button").mouseout(function(){
            $(this).css("background-color","black");
            $(this).css("opacity",1);});
         /*Menu*/
         $("#info").click(function(){
            $("#menu2").slideDown("slow");
            });
         $("#about").click(function(){
            $("#menu3").slideDown("slow");
            });
         $("#news").click(function(){
            $("#menu4").slideDown("slow");
            });
         $("#book").click(function(){
            $("#menu5").slideDown("slow");
            });
         $("#misc").click(function(){
            $("#menu6").slideDown("slow");
            });
   
         $("#links").click(function(){
            $("#menu7").slideDown("slow");
            });
         $(".close").click(function(){
            $(".menu").slideUp(2000);
            $(".fatdiv").fadeIn(800);
            $("#mylogo").show("slow");
            });
         
      });
   
   </script>

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 11:45 am 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
chrome has nice set of developer tools, one of which gives you a time line on web page loading.

that beings said: why is main.png so big? convert to jpeg and watch it speed up.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 1:00 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
Oh, I think I might have been unclear. Sorry.

I wasn't talking about load time. I was worried about the animated effects by jquery being slow, even after after all content has loaded. However, I will go and make the file type adjustment to see if that improves anything. Thanks.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 2:32 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Sep 05, 1999 2:01 am
Posts: 6377
Location: ☃☃☃
Seems to run identically (and well) for me on Firefox 4, Opera 11.11, and Midori 0.3.2 on my Ubuntu 11.04 laptop with Intel graphics. Have you tried Firefox 4 on windows yet?


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 3:47 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
On this ancient P4 at work, FF4 is slightly faster than opera 9.63 under XP.

The load speed of that image would put people off.

You want that under 60KB.

Do you really need to be using google Analyitics? its like generating 71 KB of CSS that you don't need.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 5:39 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
fliptw wrote:
On this ancient P4 at work, FF4 is slightly faster than opera 9.63 under XP.

The load speed of that image would put people off.

You want that under 60KB.

Do you really need to be using google Analyitics? its like generating 71 KB of CSS that you don't need.


Yikes, man! You're a penny pincher! I like fat websites with graphics, though I bet it wouldn't feel the same way on a smart phone. Yeah, I'll cut stuff back, though I'd like an HD image in the back for LCD 44" presentations. ImageMagick and Python should be able to size the background-image pretty easily from the HD png source.

And no, I don't need GA! I want to eventually use cpannel's built in apps plus some custom code to generate my own alternative. GA lets me be lazy, but it is an extra expense to download time and it doesn't go far enough into analyzing systems that access my site.

So, yes, I completely agree.

Jeff250 wrote:
Seems to run identically (and well) for me on Firefox 4, Opera 11.11, and Midori 0.3.2 on my Ubuntu 11.04 laptop with Intel graphics. Have you tried Firefox 4 on windows yet?


Will do that! Yeah. I'm currently on FF 3.5+, as a backup to Chrome.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 6:03 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Sep 05, 1999 2:01 am
Posts: 6377
Location: ☃☃☃
Firefox 4 on any OS would be a lot more competitive than 3.5. Firefox 3.5 has been end-of-life'd.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 6:43 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
Jeff250 wrote:
Firefox 4 on any OS would be a lot more competitive than 3.5. Firefox 3.5 has been end-of-life'd.

Tell that to fafsa.ed.gov... They're the reason I have 3.5 installed.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 6:51 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
just change the user-agent string.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 07, 2011 6:56 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
I got a chrome pluggin that did that, but it had no effect on the fasfa site. It did work on other sites, though. Maybe the fasfa site tests for browser features to determine the browser.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Wed Jun 08, 2011 12:27 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
try this UA string:

Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 ( .NET CLR 3.5.30729; .NET4.0E)

used that and it stopped complaining. Not sending a UA string makes their UA detector crash.

I also used this extension: http://neko.tsugumi.org/UAControl.html

Ponder the Irony:
government missing the point wrote:
For the past few years, every major Web browser released has been built around a set of open standards designated by the World Wide Web Consortium, a non-profit organization charged with overseeing the continuing development of the Web. What this means is that one piece of code now looks the same on every modern browser, whether it be Internet Explorer, Firefox, Safari, Opera, or others. The majority of our users are using these modern browsers, so we can present content which is optimized for them.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Sun Jun 12, 2011 8:10 am 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
I GOT IT!!!!!!!!!!!!!!!!!


animating, fading, sliding and image that has been adjusted by % will cause the animated movement to lag!!!!

MUAHAHAH! I can fix this by having jquery or python quickly resave an image to the correct resolution, so that an image won't need to be sized by css!

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Sun Jun 12, 2011 4:32 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Sep 05, 1999 2:01 am
Posts: 6377
Location: ☃☃☃
While theoretically possible, that sounds like a bad idea.

What Firefox version, OS combinations are you seeing this lag in? By adjusted by %, do you mean any image that has been resized from its native dimensions?


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Sun Jun 12, 2011 5:49 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
FF 3.6.17
Ubuntu 10.10 Desktop

Dell Mini10v

I will prepare a new page that will clearly show the css property causing a drop in FPS.

here's my test site:
[removed link]

Though there should be css problems all the animations should be running smoothly.
To fix background image size problems, that can show black space, I'll write that python script I referred to in my last post, and I'll post the results.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Sun Jun 12, 2011 10:26 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Sun Sep 05, 1999 2:01 am
Posts: 6377
Location: ☃☃☃
Yeah, it would be useful to generate the smallest possible test case that produces the lag problem and give us a link.

Re: resizing the image server-side with python, are you going to have to download a new image every time someone resizes their browser window? Make sure that the illness is worse than the cure.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Mon Jun 13, 2011 5:13 am 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
I'm not sure how bad it will be. Once I've made the test I'll have a better idea of how much resources it will cost. Also, I could have 5 prefabricated images for backgrounds, so there would be no reason to use ImageMajick.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Mon Jun 13, 2011 11:05 am 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
And omg.. the ipad zooms out instead of trying to achieve 1:1 pixel ratio.... I'm going to have to research that...

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Mon Jun 13, 2011 1:45 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
note: moving backgrounds are annoying.


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Mon Jun 13, 2011 3:30 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
noted

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 21, 2011 4:38 pm 
Offline
DBB Captain
DBB Captain
User avatar

Joined: Wed Oct 06, 2004 9:40 am
Posts: 667
Some of my suggestions

Your code:

Code:
$(document).ready(function(){

         /*These initially put some divs in a hidden state*/
         $("#hello").hide();
         $(".menu").hide();
         $("#foo").hide();
         $("#hide").hide();
         /*Clear background when images load*/
         $(window).load(function(){
            $("#blacksquare").animate({width:50},"slow");
            $("#blacksquare").animate({height:0},"slow");});



         /*Draggable*/
         $(".menu").draggable();


         /*These hide and show stuff */
         $("#mylogo").click(function(){
           
            $("#menu1").toggle()
         });
         $(".button").click(function(){
            $("#menu1").hide();
            $(".fatdiv").fadeOut(2000);
            });
         $(".button").mouseover(function(){
            $(this).css("background-color","blue");
            $(this).css("opacity",0.4);});
         $(".button").mouseout(function(){
            $(this).css("background-color","black");
            $(this).css("opacity",1);});
         /*Menu*/
         $("#info").click(function(){
            $("#menu2").slideDown("slow");
            });
         $("#about").click(function(){
            $("#menu3").slideDown("slow");
            });
         $("#news").click(function(){
            $("#menu4").slideDown("slow");
            });
         $("#book").click(function(){
            $("#menu5").slideDown("slow");
            });
         $("#misc").click(function(){
            $("#menu6").slideDown("slow");
            });
   
         $("#links").click(function(){
            $("#menu7").slideDown("slow");
            });
         $(".close").click(function(){
            $(".menu").slideUp(2000);
            $(".fatdiv").fadeIn(800);
            $("#mylogo").show("slow");
            });
         
      });
   
   </script>



New code:


Code:
$(document).ready(function(){

         /*These initially put some divs in a hidden state*/
         $("#hello, .menu, #foo, #hide").hide();
           /*Clear background when images load*/
         $(window).load(function(){
            $("#blacksquare").animate({width:50, height:0},"slow");
           });



         /*Draggable*/
         $(".menu").draggable();


         /*These hide and show stuff */
         $("#mylogo").click(function(){
           
            $("#menu1").toggle()
         });
         $(".button").click(function(){
            $("#menu1").hide();
            $(".fatdiv").fadeOut(2000);
            });
         $(".button").mouseover(function(){
            $(this).css({"background-color":"blue", "opacity":0.4});
       });
         $(".button").mouseout(function(){
            $(this).css({"background-color":"black", "opacity":1});
           });
         /*Menu*/
         $("#info").click(function(){
            $("#menu2").slideDown("slow");
         
         /*This should really be something with a class and child, like
         $(".menumain").click(functio(){
         $(this).children(".submenu").slideDown("slow");   
         });*/
         
            });
         $("#about").click(function(){ //then you could get rid of all this
            $("#menu3").slideDown("slow");
            });
         $("#news").click(function(){
            $("#menu4").slideDown("slow");
            });
         $("#book").click(function(){
            $("#menu5").slideDown("slow");
            });
         $("#misc").click(function(){
            $("#menu6").slideDown("slow");
            });
   
         $("#links").click(function(){
            $("#menu7").slideDown("slow");
            });                                 //<--------- to this
         $(".close").click(function(){
            $(".menu").slideUp(2000);
            $(".fatdiv").fadeIn(800);
            $("#mylogo").show("slow");
            });
         
      });
   


Top
   
 Post subject: Re: jQuery slower in Firefox?
PostPosted: Tue Jun 21, 2011 5:46 pm 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
Oh yeah! Ok. I was trying to think of a way to shorten that script.
Thanks.

I might have to do something like that with my comment box, if possible. It's starting to become my biggest jQuery project with some parts being repeated.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group