Sorry my bad.... was "if(window.Prototype) ..."

Sorry for silly post !!

Alex
----- Original Message ----- 
From: "Jeztah" <webmas...@thecarmarketplace.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Monday, July 20, 2009 11:07 AM
Subject: [Proto-Scripty] Checking if prototype is loaded


>
> Morning guys.
>
> Does anyone know a way to check if prototype is loaded or not ....
>
> I have tried "if(Prototype) { ..." but just throws an undefined error.
>
> I know i know i should know if it is loaded or not but my servers use
> very heavy aggressive caching due to massive user loads and i noticed
> in my cache there was some javascript thats not even on the page left
> in a session cache.
>
> To cut it short i use server side methods to gzip/minify js files on
> page load (same with the css).... as they are loaded they go into an
> array if whats loaded. Then on the page i am able to check the "Cache"
> of javascript loaded by checking a session array variable. The trouble
> is .... the session variable is rightly telling me prototype is
> (included) - but not in the <head> tag so it is not showing up as a
> loaded script once the page is refreshed!!!....
>
> would it be window.Prototype or is there a cleaner method ?
>
>
> Thanks in advance
>
> Alex
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to