marnanel: (Default)
Two techy things I realised over the last couple of days:

  1. I want to link to the HTML validator and feed validator from my pages, but in order to check they validate rather than to say "look at me, I write conformant HTML". Finding space for the "Valid HTML, valid CSS, valid Atom" labels was getting to be a nuisance. Yesterday I realised that I could just use HTML relative links for this:
    <link rel="valid-html" type="application/xhtml+xml" href="http://validator.w3.org/check?uri=..." />
    <link rel="valid-atom" type="application/xhtml+xml"
       href="http://feedvalidator.org/check.cgi?url=..." />
    Then if your browser supports it you can just select the "valid-html" link or whatever, and you don't clutter the page up with validation links. An example is here. I haven't yet looked up whether there is some more standard name for these, or indeed whether anyone else has thought of this.

  2. Parchment currently loads story files by base-64 encoding them and supplying them as inline JavaScript (thus). It occurred to me today that the best way to do this would be to load actual z5 files using XMLHttpRequest. It would mean that admins didn't have to encode the files specially, and it would skip the decoding step, so the games would load faster. Of course you wouldn't be able to load games directly from any site but your own. I may implement this at some point and see whether it becomes noticeably faster.

Profile

marnanel: (Default)
Monument

January 2022

S M T W T F S
      1
2345678
9101112131415
1617 1819202122
23242526272829
3031     

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 9th, 2025 02:45 am
Powered by Dreamwidth Studios