Simple component to add jQuery library script in a block.

By @mantradev


Install with:

$ mantrad download-component jquery@1.0.0

Or install last version with:

$ mantrad download-component jquery


jquery Mantra component

This component defines a simple block to add jQuery library.

The block is named as jquery-block-script.

You can include the jQuery script in your html code including the block, like this:


Current version to include jQuery is 3.6.0.

Usually, this addition of the library can be added using Mantra.AddJs() method in a middleware, but in many cases, jQuery library file should be included at the begining of the html document.