aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils
AgeCommit message (Collapse)Author
5 daysReplace cookies with localStorageOsmium Sorcerer
Cookies's use case is to store persistent data and send it to the server in subsequent requests, such as to remember logged-in sessions. WebAO is using them to store site settings like ad-hoc hash tables that require parsing and serialization. As a nasty side-effect of how cookies work, clients send all their settings every time they connect to the server. Server has absolutely no use for them, but each client sends them anyway, which is an uncalled-for privacy leak. Remove this mechanism entirely, switch to localStorage which serves exactly the purpose of per-origin store with data that never leaves the browser.
5 daysChange image extension priorityOsmium Sorcerer
Sometimes, WebP icons won't load despite extensions.json clearly defining it as the only extension used for all image data. I suspect there's a race condition between fetching extensions.json, parsing it into client, and checking what extension we should use to get character icons during loading. Sometimes it correctly loads images, sometimes it falls back and starts requesting PNG instead. I couldn't precisely identify where it happens and what's the root cause. As a workaround, this commit instead makes WebP the first-priority extension and a fallback.
2026-04-06Merge pull request #301 from AttorneyOnline/rendering-fixstonedDiscord
Fix IC rendering race conditions with asset preloading
2026-04-01Add asset preloading system for IC message renderingDavid Skoland
Fix rendering race conditions where character sprites, pre-animations, and paired character assets were displayed before being downloaded. All assets referenced in an MS packet are now resolved and preloaded into the browser cache before the animation timeline starts. - Add unified assetCache module with session-wide promise caching - Add preloadMessageAssets orchestrator for parallel asset resolution - Cache fileExists HEAD requests so missing files aren't re-probed - Preload all SFX (emote, shout, realization, stab) alongside sprites - Use synchronous setEmoteFromUrl at all render transition points - Graceful fallback to legacy setEmote if preloading times out Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01Enable auto pick area and charDavid Skoland
2026-01-01dont use opacitystonedDiscord
2026-01-01deal with this properlystonedDiscord
2025-09-03also do bgsstonedDiscord
2025-09-03bgurlsstonedDiscord
2025-06-26move testsstonedDiscord
2024-11-20Prettified Code!stonedDiscord
2024-11-20Prettified Code!stonedDiscord
2023-11-30Revert fileExistsDavid Skoland
2023-11-29Catch errors in fileExistsDavid Skoland
2023-11-29Add findImgSrcDavid Skoland
2023-11-29Add filesExistDavid Skoland
2023-11-29Simplify and make fileExists proper typescriptDavid Skoland
2023-11-29Rename fileExists.js to fileExists.tsDavid Skoland
2023-11-20More protocol magicDavid Skoland
2023-11-20Change ip to connect and include protocolDavid Skoland
2023-11-13Add serverName to queryParamsDavid Skoland
2023-11-13Use URLSearchParams and set default directlyDavid Skoland
2023-09-20autoformat with eslintstonedDiscord
2023-09-20mostly whitespaces, please don't breakstonedDiscord
2023-09-20no more eslint errorsstonedDiscord
2023-09-20make eslint a lot happierstonedDiscord
2023-04-16Resolving color issuesCaleb
2023-04-10set strict cookiesstonedDiscord
2022-08-30convert cookie stuff to tsstonedDiscord
2022-08-30use the typescript version of queryparserstonedDiscord
2022-08-30fix #112stonedDiscord
2022-08-25Remove handleMS and separate queryParserCaleb
2022-07-16finally fix testimony and guilty "bubbles"stonedDiscord
2022-07-15Resolving issue with name display and encoding issueCaleb Mabry
2022-03-25Merge pull request #130 from AttorneyOnline/multipleBackgroundTypesstonedDiscord
Multiple Background Types
2022-03-24Adding typescript support and unit testscaleb.mabry.15@cnu.edu
2022-03-24Change any to stringcaleb.mabry.15@cnu.edu
2022-03-24Added support for issue with aomlParsercaleb.mabry.15@cnu.edu
2022-03-23Merge branch 'master' of https://github.com/AttorneyOnline/webAO into ↵caleb.mabry.15@cnu.edu
multipleBackgroundTypes
2022-03-23ao host is a stringstonedDiscord
2022-03-23Added support for custom backgroundscaleb.mabry.15@cnu.edu
2022-03-23Artifacts from testingcaleb.mabry.15@cnu.edu
2022-03-23Final commitcaleb.mabry.15@cnu.edu
2022-03-22converted to typescriptcaleb.mabry.15@cnu.edu
2022-03-21Fixing bugscaleb.mabry.15@cnu.edu
2022-03-20Adding custom markdown based on asset filecaleb.mabry.15@cnu.edu
2022-03-13Resolve too many network callscaleb.mabry.15@cnu.edu
2022-03-12Lintcaleb.mabry.15@cnu.edu
2022-03-12Removing console logs adding function for different char iconscaleb.mabry.15@cnu.edu
2022-03-11add apng preanimsstonedDiscord