Bootstrap/Laravel won't load javascripts

erm_durr

I try to load my javascripts like this:

                        <!-- Le javascript -->
<!-- ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

 {{ HTML::script('http://code.jquery.com/jquery-2.0.3.min.js') }}
 {{ HTML::script('js/bootstrap-transition.js') }}
 {{ HTML::script('js/bootstrap-alert.js') }}
 {{ HTML::script('js/bootstrap-modal.js') }}
 {{ HTML::script('js/bootstrap-dropdown.js') }}
 {{ HTML::script('js/bootstrap-scrollspy.js') }}
 {{ HTML::script('js/bootstrap-tab.js') }}
 {{ HTML::script('js/bootstrap-tooltip.js') }}
 {{ HTML::script('js/bootstrap-popover.js') }}
 {{ HTML::script('js/bootstrap-button.js') }}
 {{ HTML::script('js/bootstrap-collapse.js') }}
 {{ HTML::script('js/bootstrap-carousel.js') }}
 {{ HTML::script('js/bootstrap-typeahead.js') }}

But still, it doesn't load. I've checked the console in Chrome Developer Tools, and it returns for the most of them the following error:

Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-transition.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-alert.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-modal.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-dropdown.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-scrollspy.js:4
Uncaught SyntaxError: Unexpected token < bootstrap-tab.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-tooltip.js:4
Uncaught SyntaxError: Unexpected token < bootstrap-popover.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-button.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-collapse.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-carousel.js:4
Uncaught SyntaxError: Unexpected token < :8000/js/bootstrap-typeahead.js:4
Resource interpreted as Script but transferred with MIME type text/plain: "chrome-extension://gppongmhjkpfnbhagpmjfkannfbllamg/js/inject.js". 
Softinio

Why don't you try using a CDN like:

<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>

ie just have this to replace all you have:

{{ HTML::script('http://codeorigin.jquery.com/jquery-2.0.3.min.js') }}
{{ HTML::script('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js') }}

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사