Loading javascript in Code Igniter
问题 For our Code Igniter application we are loading all of our javascript just before the closing body tag. so in our controllers we have $this->load->view('head', $this->head); $this->load->view('main_view_for_controller', $data); $this->load->view('foot', $this->foot); And in the foot view we have a bunch of <script src="master.js"></script> tags. These include jQuery jQuery-ui shared-functions Now this works great, until you think about JS used only on specific pages, or inline js. You can't