Dec 3, 2018
0
Level 3
A tip when using jQuery UI Laravel 5.7
I set up a new project and then added jQueryUi the main home page as I wanted the tabs:
<link href="{{ asset('jqueryui/jquery-ui.min.css') }}" rel="stylesheet">
<link href="{{ asset('jqueryui/jquery-ui.structure.min.css') }}" rel="stylesheet">
<link href="{{ asset('jqueryui/jquery-ui.theme.min.css') }}" rel="stylesheet">
It didn't work although it has worked perfectly on other projects and I was receiving a jQuery error..
I found that if I took out
<script src="{{ asset('js/app.js') }}" defer></script>
it worked, but then things in the menu did not work so that was not a great start and then I found if you delete defer from the app.js call all is fine:
<script src="{{ asset('js/app.js') }}"></script>
Please or to participate in this conversation.