I have used the custom widget to creat a calendar and have noticed that the CPU/Memory usage peaks massively when on the page which has this widget.
when I viewed console, the widget runs constant API calls, a couple of calls per second.
I have attached 2 pictures to show the contrast...
When in the editor and on any other page CPU usage is relatively low, the picture shows 8.7%, it can vary between 0.3-~12%
When I move to the page which contains the calendar, CPU usage jumps up, the attached image shows it at 31.5% this is actually it at the lower end, it has been up around 50%
the memory usage also spikes and I have seen this up as high as 7500mb
Which then makes the computer run very slow and makes editing the app on this page difficult.
the other issue I have with the custom widget/calendar is that, I have set the calendar up on tab 1 and when I select an entry it then changes to tab 2 to display the information.
the back button is then set to take me back to tab 1 to view the calendar... It does this but then I am instantly sent back to tab 2.
It look as though along with the continuous API calls, that the calendar is also repeating the JS that I ran in order to view the entry