Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jim1506's avatar

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>
0 likes
0 replies

Please or to participate in this conversation.