inherit
264763
0
Nov 5, 2023 15:29:05 GMT -8
silversteps
1
July 2021
silversteps
|
Post by silversteps on Mar 27, 2023 18:38:21 GMT -8
Looks like there's now a character limit on the size of Javascript components of plugins -- is this a (new) thing, and is there a workaround? I remember being able to edit my whole plugin previously, but now it seems to cut off at about 1800 lines / 65000 characters. The full thing works, but it breaks if it's exported or otherwise edited without re-pasting the whole thing.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Mar 27, 2023 19:47:30 GMT -8
Looks like there's now a character limit on the size of Javascript components of plugins -- is this a (new) thing, and is there a workaround? I remember being able to edit my whole plugin previously, but now it seems to cut off at about 1800 lines / 65000 characters. The full thing works, but it breaks if it's exported or otherwise edited without re-pasting the whole thing. The size has always been 64K Thanks for the comments guys, I appreciate it. Am still considering what I want to do. If I do continue adding new features, unfortunately they would come as a new plugin (aka addon), as the size of the code is large, and required me to use a different compressor that I didn't really want to use. Will keep you updated on things when I decide I was under the impression it was 64K characters total.. but maybe Tim Camara will have to clarify I'm pretty sure the limit is 64K per component, with an overall limit of 10 MB. Since you can have two JS components per plugin, you get 128K of cacheable JS code space not including any inline script tags that can be placed in header/footer components or remotely hosted scripts (which may deny inclusion into online library) The following types of codes are prohibited:- Codes that make requests to ProBoards' servers except through methods explicitly allowed for by ProBoards (such as plugin set() functions). Examples of prohibited codes include using <iframe> tags to access forum content, or making AJAX requests to ProBoards forums.
- Codes that affect the placement of advertisements on any ProBoards forum, except those specifically authorized by ProBoards.
- Codes which cause automatic redirects on page load to a new URL.
- Codes which rely on external code to work properly. Note that using external data is acceptable, so long as that data is loaded asynchronously.
- Codes which use plugin keys to store unrelated data, e.g., sharing a single plugin key between multiple unrelated plugins.
|
|