You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
One of the problems is that the JS file contains two identical 1.33mb code blocks. To check this, visit the raw file here: https://raw.githubusercontent.com/froala/nova-froala-field/a2126c44721ef67c8156a7c53664241408234ae8/dist/js/field.js, copy any large code block, and do a find on it. You'll see it appear again halfway through the file. Or, download the file, open in a text editor, and turn off line wrapping. Lines 1 and 2 of the file are identical code blocks:
It's possible there's other duplications as well. For example, this code block appears 4 times in the file, and should probably only appear once:
/dist/js/field.js
has gone from 712kb in this commit https://github.com/froala/nova-froala-field/blob/2c2fef1d0cfe27416776c988df4cdd301bae2068/dist/js/field.js to 2.66mb in the latest update to the file: https://github.com/froala/nova-froala-field/blob/a2126c44721ef67c8156a7c53664241408234ae8/dist/js/field.js This results in the full 2.66mb file being published to the Nova scripts URL at/nova-api/scripts/nova-froala-field
and loaded every time a user visits the Nova backend.One of the problems is that the JS file contains two identical 1.33mb code blocks. To check this, visit the raw file here: https://raw.githubusercontent.com/froala/nova-froala-field/a2126c44721ef67c8156a7c53664241408234ae8/dist/js/field.js, copy any large code block, and do a find on it. You'll see it appear again halfway through the file. Or, download the file, open in a text editor, and turn off line wrapping. Lines 1 and 2 of the file are identical code blocks:
It's possible there's other duplications as well. For example, this code block appears 4 times in the file, and should probably only appear once:
Trimming
/dist/js/field.js
back down to a reasonable size by removing duplicate code would help speed up our Nova backend. Thanks!The text was updated successfully, but these errors were encountered: