I can't solve this issue.
I have created new dnn module and inside module I have some JavaScript libraries. I include them in the following way:
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<dnn:DnnJsInclude runat="server" FilePath="~/DesktopModules/COM.DEMO.Masonry/Scripts/imagesloaded.js" />
<dnn:DnnJsInclude runat="server" FilePath="~/DesktopModules/COM.DEMO.Masonry/Scripts/masonry.js" />
I am using DNN 7.2.2 and I had this problem before but it was working before but now don't.
When I look at page source libraries are included but in browser console I am gettings errors:
Uncaught TypeError: undefined is not a function imagesloaded.js?cdv=24:125
Uncaught TypeError: Cannot read property 'create' of undefined masonry.js?cdv=24:34
Uncaught TypeError: undefined is not a function
Does anybody have idea what is the problem here?
I have also tried to import JQuery (jquery is loaded):
protected void Page_Load(object sender, EventArgs e)
{
JavaScript.RequestRegistration(CommonJs.jQuery);