I want to add lazy load js file in custom module.
In templates folder in that web/js/lazy_load.js file I have put.
Then in layout file
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
<head>
<title>Pest Library</title>
<script src="js/jquery.lazyload.js"/>
</head>
<body>
<referenceContainer name="content">
<block class="Iksula\PestLibrary\Block\Index\Index" name="pestlibrary_index_index" template="Iksula_PestLibrary::pestlibrary_index_index.phtml"/>
</referenceContainer>
</body>
</page>
But js file is not called.