mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-27 04:01:24 +00:00
Initial implementation of arbitrary data build queue
This adds the loadAsynchronously() method to ArbitraryDataReader, in addition to the existing loadSynchronously() method. When requesting a website in a browser, previously the building of the resource's layers would be done synchronously in the API handler. This understandably caused many issues, so the building is now done asynchronously by a dedicated thread. A loading screen is shown in its place which auto refreshes every second until the build has completed.
This commit is contained in:
23
src/main/resources/loading/index.html
Normal file
23
src/main/resources/loading/index.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Loading...</title>
|
||||
<script>
|
||||
setTimeout(window.location.reload.bind(window.location), 1);
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial;
|
||||
text-align: center;
|
||||
}
|
||||
h1 {
|
||||
margin-top: 50px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</html>
|
||||
<body>
|
||||
<h1>Loading... please wait...</h1>
|
||||
<p>This page will refresh automatically when the content becomes available</p>
|
||||
<p>(We can show a Qortal branded loading screen here)</p>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user