contao-components/jquery
Provides the jQuery library as a Contao component/package for easy inclusion in Contao projects. Useful for managing a consistent jQuery version, updating via Composer, and integrating jQuery-dependent scripts without manual downloads or asset handling.
contao-components/jquery package provides jQuery integration, which is a critical frontend library for legacy Contao CMS projects (if this is indeed a Contao-specific package). For modern Laravel applications, jQuery is often unnecessary due to:
fetch, querySelector).$).app.js/app.css entry points.npm install jquery + require('jquery') in a custom JS file).npm install jquery) and import in a custom JS file (e.g., resources/js/contao-legacy.js).
import $ from 'jquery';
window.$ = window.jQuery = $; // Expose globally if needed
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
resolve.alias or externals to prevent duplicates.resources/views/layouts/app.blade.php) after Laravel’s default app.js.$ conflicts.grep for $( or .jquery in resources/js/).contao-legacy.js) to limit scope.(function($) {
// Contao-specific code
})(jQuery);
sweetalert2 instead of jQuery dialogs).$ conflicts; may need to rename jQuery to a local variable (e.g., const jQ = require('jquery')).laravel-excel, spatie/laravel-permission) rely on jQuery.contao.js).$ with a local variable where possible.3.6.0) to avoid breaking changes.jquery to package.json and configure npm/yarn to avoid version conflicts.README.md or architecture docs.$ collisions with other libraries) will require deep debugging..on(), .ajax()).jQuery.noConflict() to release the $ global.How can I help you explore Laravel packages today?