Closed Spaceface16518 closed 6 years ago
There is also a possibility to use only one renderer js file so that there is no inconsistency that may happen when trying to use asynchronous technology across multiple files. There would be inherent challenges to that though. ID's would have to be unique so that the file didn't accidentally change something on one file and not the other. That's the main one at least.
Because of extended time as a duplicate, I am closing this issue. It is obviously the same as #4, and not necessary at all.
The two js files need to be able to "talk" to each other. You can achieve this by adding event listeners on
single.js
and event emitters onindex.js
. Here is a link for a website that explains how to use event listeners.