View Thread
Post your improvements and modifications to header.php here.
Did you implemented this?
Yes Yes 100%[1 Vote]
No No 0%[0 Votes]
Total Votes : 1
 Print Thread
header.php Use googleapis as a CDN
Fusioneer
I modified header.php to load jquery.js from googleapis.
This has two advantages.
- You use googleapis as a CDN (Content Delivery Network), reducing your own serverload and loading time of jquery.
- You load the minified version to further improve loading time.

If for some reason the file could not be loaded a fail safe/fall back has been build in.

Original header.php
\n"\n";
  • echo "</head>\n<body>\n";
  •  
  • require_once THEMES."templates/panels.php";
  • ?>
  • Parsed in 0.011 seconds, using GeSHi 1.0.8.10


    Now replace line 46 with:
    \n"\n";}
  •  
  • Parsed in 0.012 seconds, using GeSHi 1.0.8.10


    So complete it woul like like this.
    \n"\n"\n";
  • echo "</head>\n<body>\n";
  •  
  • require_once THEMES."templates/panels.php";
  • ?>
  • Parsed in 0.012 seconds, using GeSHi 1.0.8.10

    Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
     
    Jump to Forum
    New Thread Post Reply
    Gebruik BBcode of HTML om naar; 'header.php Use googleapis as a CDN', te verwijzen!
    BBcode:
    HTML: