SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot SlaveToTheMan's Avatar
    Join Date
    Aug 2001
    Location
    Land of OZ
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JS, CSS, and library file organization?

    How do you organize your JS, CSS, and library files on your site?

    Do you have separate folders like the following relative to the web server root?

    js
    css

    Where does a library like jQuery go? In the js folder?
    What about your js? Do you namespace it and then create the appropriate directories? Say you have a obj like yourcompany.dom.myObj. Would it be locate in a folder path of root --> js --> yourcompany --> dom --> myObj.js

    Have you thought about just having a library folder and then create different folders for each library including your own like:
    root --> lib --> yourcompany --> js --> yourcompany --> dom --> myObj.js
    ...that may have associated CSS located in root --> lib --> yourcompany --> css

    How do you do it? I have a lot of various js and css files and we use other libraries like jQuery and yahoo. I'm looking for ideas on organization.

  2. #2
    SitePoint Zealot SlaveToTheMan's Avatar
    Join Date
    Aug 2001
    Location
    Land of OZ
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump, bump...

    no one? I figure someone has an organization scheme they like?

  3. #3
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Actually they do, you just didn't seem to search hard enough (as this topic has been done to death):

    http://www.sitepoint.com/forums/showthread.php?t=672600

  4. #4
    SitePoint Zealot SlaveToTheMan's Avatar
    Join Date
    Aug 2001
    Location
    Land of OZ
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the link!


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
  •