Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7019875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:14:34+00:00 2026-05-27T23:14:34+00:00

I am using Codeigniter. I am keeping my images,CSS and Javascript files in a

  • 0

I am using Codeigniter. I am keeping my images,CSS and Javascript files in a folder called “support” in the document root of my application. So my document root folder looks like this-

.settings
application 
support
system
.buildpath
.project
 index
.htacces

Now my question is will it make my website take time to load as I have to use <? echo base_url();?>support/ every time I need to get something from my support folder? Because you see when I am using <? echo base_url();?>I am actually calling the full website address.. and I have 7 CSS and 13 javascript files to call from “support” so it will definitely take time to load the website. (Please correct me if I am wrong). If you think by this a website can get slow could you please tell me where exactly should I put my CSS,images and javascript files in. I heard views is not a good place for this.

Thanks in Advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:14:34+00:00Added an answer on May 27, 2026 at 11:14 pm

    This question is probably bigger than you think.

    First of all, using <? echo base_url();?> instead of “hard-coding” your web address will not slow down your site. A function call like this is very negligible to the speed of loading your pages.

    I think the other part of your question is regarding architecture.

    When you think of speed for your website, you need to know what factors slow down the loading of your page. (Although not an exhaustive list, this will help in your case):

    1. the number of files (images, css, javascript, etc.) that need to load for your page
    2. the cache-ability of those files
    3. some server side header nonsense (e-tags and so-forth)
    4. the processing to build your php pages
    5. the size of your page

    Now, in your instance, I would recommend putting all of your “static” files in the document root under a folder (say static). Then, access them all in your “views” with the base_url() function.

    This way, your page as it’s delivered to the browser, will make external calls for those static files – allowing the browser to cache all of those files (assuming the headers are set up correctly). If you put them into views, then they’re actually added to the page that is being requested. So, the next page that is requested has to download those files again along with that second page being requested. Make sense?

    To help with the “number of files”, you can always concatenate and minify any css/javascript that you have. So instead of the browser downloading and caching 8 js files, you can serve it 1 js file with all of your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using codeigniter and its pagination class. It works perfectly and it looks
I'm using CodeIgniter (because it's awesome) and I have something like: <?php echo anchor(/,
Using CodeIgniter, I am trying to place several images onto my view page as
i have built application using codeigniter, my controller name is userReg , in controller
I've just started using codeigniter and wanted to include some external css in my
I'm using codeigniter to create a search page. I'd like to rewrite a GET
I am currently using CodeIgniter to support one site, whose main purpose is to
I'm using CodeIgniter for an application that I'm writing and I've got a question
I'm using Codeigniter 2.0.1 and I'd like to put an variable in a language
I'm using Codeigniter 2. I'm trying to display some images using the background url

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.