mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
![]() We were refreshing the page constantly in order to show output while a task was running, which basically worked but is horrible. Instead, write the task output to a file and then use AJAX calls to request whatever output has been written to the file since the last call and call this roughly every second. Put the output in a scrollable <pre> element instead of making it the length of the page, and auto-scroll to the end (unless the user grabs the scrollbar and pulls it upwards - it may not be immediately obvious that you can do this if there is a lot of output since you have to pull it up when the scrolling animation is not running, but it is possible). An alternative would be to have used some kind of long-lived HTTP session or a websocket, but those come with their own set of problems so I elected to use this much simpler method. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
||
---|---|---|
.. | ||
css | ||
fonts | ||
img | ||
js |