Quantcast
Viewing all articles
Browse latest Browse all 49203

Tips on how to optimize our new Drupal site and our usage of Jquery

Hi,

The design and web part of our company recently launched our new website http://www.wimaxforum.org and we are having a few issues. We use Jquery on our site and it seems that when people who have older browsers, like older versions of IE 6 (which they can't up grade because their IT staff has their computers locked up so they can't do updates on their own), the site crashes. We have 500 MB of php memory available to us on VPS hosting and I'm not sure what to do.... Any suggestions? One thing has been bothering me is that I have some jquery on our template file, however, I'm not sure where else to put it or how to format it properly.
Here is an example:

<script type="text/javascript">
$(document).ready(
     function(){
            if($('body.front').length > 0){
           $('#portfolio').innerfade({
              animationtype: 'fade',
               speed: 'slow',
               timeout: 5000,
             type: 'sequence',
                containerheight: '172px'
         });}
          
           if($('body.front').length > 0){
           $('#portfolio2').innerfade({
             animationtype: 'fade',
               speed: 'slow',
               timeout: 5000,
             type: 'sequence',
                containerheight: '172px'
         });}
          
           if($('body.front').length > 0){
           $('#portfolio3').innerfade({
             animationtype: 'fade',
               speed: 'slow',
               timeout: 5000,
             type: 'sequence',
                containerheight: '172px'
         });}
          
           if($('body.front').length > 0){
           $('#portfolio4').innerfade({
             animationtype: 'fade',
               speed: 'slow',
               timeout: 5000,
             type: 'sequence',
                containerheight: '172px'
         });}
          
       }
  );
</script>

can any one give me some solid suggestions on what to do to prevent peoples' browsers from crashing?


Viewing all articles
Browse latest Browse all 49203

Trending Articles