I new that was to good to be true... well moving on to a new view .... There has to be a way to "capture" the HTTP requests ... I think I've seen URL rewrites with javascript... so may-be I could have it so that it's more like this... if HTPP request is in array die else execute and push URL to array? any ideas on that?
thanks for the help... jeremyBass On Sep 29, 4:13 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Oops, sorry, what I meant is that cloning the elements is the best > optimization you can do. It will save you some processing time from > not creating new elements (or maybe not, as jQuery will be re-creating > the clone element), but the HTTP requests will remain. > > $('#flash-round-corner- > thing').clone().appendTo('newcorner').clone().appendTo('anothercorner') > etc. > > On Sep 29, 1:08 am, jeremyBass <[EMAIL PROTECTED]> wrote: > > > > > Thank you for the help... > > > >>> And using dozens of flash objects to round corners doesn't seem like a > > >>> good idea... > > > Yeah I thought there would be alot of trouble to at first... but it's > > better then cornflex and jcorner altogether... it's absolutely working > > perfectly. the 10-12 calls are on the first download only and it's > > not the round boxes... it's mostly the srif anyways... but that's > > ok... I'm just being anal and trying to work out everything before I > > share this with everyone. right now the round box mod is total 1kb > > big if you already have jflash.js. And it's... well I'll share this > > all in bit... I want to protect it and have never done that before... > > like a gpl? or something... anyways... > > > >>> If the element is already being cloned instead of being created again, > > >>> there is no fix. > > > so if they aren't? I could reuse the element with the new vars? then > > I would only have made one call as long as I don't change the > > source... smashing! now how to write that... :-) any more ideas on > > this? > > > thanks for the help... > > jeremyBass > > > On Sep 28, 8:31 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > > > > If the element is already being cloned instead of being created again, > > > there is no fix. You can create/clone/append/modify an image or object > > > tag, but it will always need to request it's content from the server. > > > And using dozens of flash objects to round corners doesn't seem like a > > > good idea... > > > > On Sep 28, 6:14 pm, jeremyBass <[EMAIL PROTECTED]> wrote: > > > > > I'm so it is be cahced but the HTTP requests on the dead download is > > > > still high... I'm not sure how to stop it frm makeing the requests > > > > sice the first time it runs through the functions it has downloaded > > > > the swf so no need to make a new HTTP request... any ideas on this? > > > > > On Sep 28, 10:56 am, jeremyBass <[EMAIL PROTECTED]> wrote: > > > > > > Does anyone have an idea on this... or , and I don't do this well and > > > > > lot lol, but am I not being clear? I really need to figure this > > > > > out... Thanks > > > > > jeremyBass > > > > > > On Sep 27, 3:21 pm, jeremyBass <[EMAIL PROTECTED]> wrote: > > > > > > > Hello, I want to reduce the header calls for a flash file used > > > > > > repeatedly on a page. There are 24 HTTP requests for a file that is > > > > > > already downloaded.. So My question is how would I call it once and > > > > > > then not again for the rest of the page? > > > > > > > the code area is like this > > > > > > > ex.1) > > > > > > > src: (p.path || '').replace(/([^\/])$/, '$1/') + (p.font || > > > > > > ele.css('fontFamily').replace(/^\s+|\s+$|,[\S|\s]+|'|"|(,)\s+/g, > > > > > > '$1')).replace(/([^\.][^s][^w][^f])$/, '$1.swf'), > > > > > > > ex.2) > > > > > > > var SORUCE = 'Scripts/flash/rounded_rectangle.swf'; > > > > > > $('.Round_gen53').attr('rel',''+SORUCE +':::transparent: > > > > > > 45:0:100:57:0:0x000000:0xecffa4:15:2:2'); > > > > > > $('.Round_gen54').attr('rel',''+SORUCE +':::transparent: > > > > > > 45:0:100:57:0:0x000000:0xecffa4:15:2:2'); > > > > > > > and the functions get ran for each element... but I don't see why > > > > > > the > > > > > > repeated HTTP request is needed and it's slowing my site down... So > > > > > > says YSlow lol.... Any ideas on how to fix/write this? thank you for > > > > > > the help. > > > > > > jeremyBass > > > > > > > Some other things... > > > > > > Configure ETags > > > > > > Expires header > > > > > > are set > > > > > > as well as > > > > > > > <FilesMatch "\.(js|css|swf|gz)$"> > > > > > > Header set Cache-Control "max-age=604800" > > > > > > </FilesMatch> > > > > > > > Thank again- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -