RSS Feed/News Separate XF.Cropbox into its own JS file

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,091
Points
823

Reputation:

At the moment, if we want to use the XF.Cropbox class in our own projects, we have to include the entirety of avatar.js. There is nothing in the XF.Cropbox class that necessitates it being bundled with avatar.js.

Nothing says you couldn't create your own avatar-compiled.js that bundles XF.Cropbox if you want to maintain the single JS file inclusion as well.

Continue reading...
 
Status
Not open for further replies.
Top