Upload content to hidden div

Have you looked into the dcc.Store component for this? It should be able to handle shared data between callbacks.