To avoid getting primerpedia.js too long, and to better separate primerpedia-specific functionality from generic DOM manipulation functions, I believe it could be a good idea to split the auxiliary functions (e.g. apiRequest, toggleVisibility, clearNode) to a separate file, say utils.js or somesuch.
The main goal is to keep the project's sources simple, concise, and easy to read (and thus welcoming to new contributors).
To avoid getting
primerpedia.js
too long, and to better separate primerpedia-specific functionality from generic DOM manipulation functions, I believe it could be a good idea to split the auxiliary functions (e.g.apiRequest
,toggleVisibility
,clearNode
) to a separate file, sayutils.js
or somesuch.The main goal is to keep the project's sources simple, concise, and easy to read (and thus welcoming to new contributors).