Link to home
Start Free TrialLog in
Avatar of jeff_zucker
jeff_zucker

asked on

Share jquery slider across many sites

I bought a 3rd party jquery slider and I would like to put it on approximately 1,000 sites hosted on a single web server (LAMP).  What are the pros and cons of the following methods:

- Distribute copies of the .js and all related graphics and files to each of 1,000 sites.  So each site is going to have a folder public_html/slidercode/ with around 15 files in it.  

- Put the .js and related graphics/files in a shared location below public_html, such as /usr/shared, then each site would reference the shared .js file.

- Put the .js and realted graphics/files in a shared location above public_html, such as /home/somesharedsite/public_html/

Are any of these security risks?  (all files are .js or .png)  
Will sharing the files cause any type of performance hit?
Are there any other considerations I should be aware of?
SOLUTION
Avatar of Alexandre Simões
Alexandre Simões
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jeff_zucker
jeff_zucker

ASKER

>>This is actually a good practice.

Which option is good practice?  The 3rd one?  I just want to make sure having 1,000 sites access the same files won't impact performance.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial