SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is this jquery properly optimized or duplicated?

    Hi all, is this all fine now or am I duplicating some scripts? Thank you!

    PHP Code:
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/themes/development-bundle/ui/jquery.ui.core.js"></script>
    <script type="text/javascript" src="/themes/development-bundle/ui/jquery.ui.position.js"></script>
    <script type="text/javascript" src="/themes/development-bundle/ui/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="/themes/development-bundle/ui/jquery.ui.dialog.js"></script>
    <script type="text/javascript" charset="ISO-8859-1" src="/js/fns_index.js"></script>
    <script language='javascript'> 
    $(document).ready(function(){
        $('#debug').ajaxStart(start_window);
      $('#debug').ajaxComplete(stop_window);  
    });
    </script> 

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Bayliss Trevor View Post
    Hi all, is this all fine now or am I duplicating some scripts?
    No duplication seems to be occurring there, so it's okay for development purposes.

    When you roll it out as a final page ready for production, you should combine several of those script files together in to just one file, to help reduce the number of http requests that are made when loading the page.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Paul!
    I like your tag line about java and javascript, yeah Java died a death didn't it! I'm lucky I never learnt it, I remember back in the day everything web was going to be java applets this java applets that. Anyway I digress, thanks again!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •