Done Increase the HTMLFAQ character limit (currently 8,192)

Shaymin Sky

Apologies Rex, Worry not, all is well.
is a Community Contributor
I know this is super niche but in OU room we are testing a samples revamp since with the standard non-html rfaq's it looks too bloated with all the teams
1742333156207.png


However due to the nature of the SV metagame this many teams is needed for room samples, so switching to HTML for better formatting I came across an issue of
1742333245424.png

1742333251854.png

Sadly my HTML isn't redundant either, and the design itself is pretty simple. (after cutting 3 teams there are 5 more teams that this ss doesn't show)
1742333391822.png
For now I removed 3 of the teams for now to reach the 8,192 limit, but if possible could this limit be increased in any way specifically for HTMLfaqs?
 
Last edited:
Sadly my HTML isn't redundant either, and the design itself is pretty simple. (after cutting 3 teams there are 5 more teams that this ss doesn't show)
You can compress it a lot more than that, actually. I got this from 7992 down to 5915 characters with no changes to output. That's enough for you to add at least 4-5 more teams without raising the limit.

It looks like you copy/pasted the rendered HTML? There's no reason to do that. It'll add stuff like ending tags, target="blank", <tbody>, and other stuff you don't need.

HTML:
<center><b style="font-size:110%;color:#fff;background:#ff4a4d;padding:2px;display:block">GEN 9 SAMPLE TEAMS</b><br><div style="max-width:550px"><details><summary><b style="font-size:130%">Offense</b></summary><table><tr><td>&nbsp;<td><a href="https://pokepast.es/e256ab515df2d5de"><div style="background:#E2B7B8;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=araquanid><psicon pokemon=ragingbolt><psicon pokemon=ironmoth><br><psicon pokemon=greattusk><psicon pokemon=gholdengo><psicon pokemon=kingambit></div><p style="font-size:95%">Araquanid Webs HO</a><br> by <b>vk</b><br>&nbsp;<td>&nbsp;<td><a href="https://pokepast.es/56f73e4816b54551"><div style="background:#E2B7B8;border:3px solid #000;border-radius:10px;width:120px;max-width:100% "><psicon pokemon=zamazenta><psicon pokemon=kingambit><psicon pokemon=samurotthisui><br><psicon pokemon=landorustherian><psicon pokemon=ironvaliant><psicon pokemon=ironmoth></div><p style="font-size:95%">Samurott lead HO</a> by<br><b>Vert</b> & <b>Mimikyu<br>Stardust</b><td>&nbsp;<td><a href="https://pokepast.es/edca97c8f3202253"><div style="background:#E2B7B8;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=darkrai><psicon pokemon=manaphy><psicon pokemon=landorustherian><br><psicon pokemon=gholdengo><psicon pokemon=ragingbolt><psicon pokemon=ironvaliant></div><p style="font-size:95%">Manaphy Offense</a> by<br><b>Vert</b><br>&nbsp;<tr><td>&nbsp;<td><a href="https://pokepast.es/71865ec953144ad9"><div style="background:#E2B7B8;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=roaringmoon><psicon pokemon=landorustherian><psicon pokemon=scizor><br><psicon pokemon=primarina><psicon pokemon=ragingbolt><psicon pokemon=pecharunt></div><p style="font-size:93%">Priority + Pecharunt<br>Offense</a> by <b><br>Georgiethefirst</b></table></details><hr><details><summary><b style="font-size:130%">Bulky Offense</b></summary><table><tr><td>&nbsp;<td><a href="https://pokepast.es/304450230d361815"><div style="background:#e2dbb7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=hydrapple><psicon pokemon=tinkaton><psicon pokemon=moltres><br><psicon pokemon=rotomwash><psicon pokemon=greattusk><psicon pokemon=darkrai></div><p style="font-size:95%">Darkrai + Hydrapple<br></a> by <b>CTC</b><br>&nbsp;<td>&nbsp;<td><a href="https://pokepast.es/4e1e58f329a79be0"><div style="background:#e2dbb7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=landorustherian><psicon pokemon=zamazenta><psicon pokemon=kingambit><br><psicon pokemon=samurotthisui><psicon pokemon=pecharunt><psicon pokemon=hydreigon></div><p style="font-size:95%">NP Hydreigon Hazard<br>Stack</a> by <b>Hellom</b><br>&nbsp;<td>&nbsp;<td><a href="https://pokepast.es/73c40bd837c0a2f0"><div style="background:#e2dbb7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=dragapult><psicon pokemon=rotomwash><psicon pokemon=landorustherian><br><psicon pokemon=clefable><psicon pokemon=zamazenta><psicon pokemon=samurotthisui></div><p style="font-size:95%">Life Orb Zamazenta<br>BO</a> by <b>Mimikyu<br>Stardust</b><tr><td>&nbsp;<td><a href="https://pokepast.es/af25fed7fb99cdad"><div style="background:#e2dbb7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=zamazenta><psicon pokemon=ogerponwellspring><psicon pokemon=slowkinggalar><br><psicon pokemon=kingambit><psicon pokemon=greattusk><psicon pokemon=zapdos></div><p style="font-size:95%">Expert Belt Zamazenta<br>BO</a> by <b>Attribute</b></table></details><hr><details><summary><b style="font-size:130%">Balance</b></summary><table><tr><td>&nbsp;<td><a href="https://pokepast.es/0020596f68fbd8ab"><div style="background:#c4e2b7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=gliscor><psicon pokemon=greattusk><psicon pokemon=tinkaton><br><psicon pokemon=dragapult><psicon pokemon=garganacl><psicon pokemon=samurotthisui></div><p style="font-size:95%">Garganacl Balance</a> by<br><b>Finchinator</b><br>&nbsp;<td>&nbsp;<td><a href="https://pokepast.es/9a7f780862533fde"><div style="background:#c4e2b7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=ursaluna><psicon pokemon=skarmory><psicon pokemon=meowscarada><br><psicon pokemon=gliscor><psicon pokemon=dragapult><psicon pokemon=slowkinggalar></div><p style="font-size:95%">Rest Ursaluna Balance</a><br> by <b>Hellom</b><br>&nbsp;<td>&nbsp;<td><a href="https://pokepast.es/a99e22f356876c18"><div style="background:#c4e2b7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=kyurem><psicon pokemon=tinglu><psicon pokemon=corviknight><br><psicon pokemon=weezinggalar><psicon pokemon=zamazenta><psicon pokemon=toxapex></div><p style="font-size:95%">Sub + Protect Kyurem<br> balance</a> by <b>Storm<br>Zone</b><tr><td>&nbsp;<td><a href="https://pokepast.es/fae92f5d67e42dc3"><div style="background:#c4e2b7;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=tinkaton><psicon pokemon=keldeo><psicon pokemon=gliscor><br><psicon pokemon=dragonite><psicon pokemon=sinistcha><psicon pokemon=tinglu></div><p style="font-size:95%">Keldeo + Sinistcha<br>balance</a> by <b>CTC</b><br>&nbsp;</table></details><hr><details><summary><b style="font-size:130%">Stall</b></summary><table><tr><td>&nbsp;<td><a href="https://pokepast.es/4c3fa9883fb21458"><div style="background:#B7C9E2;border:3px solid #000;border-radius:10px;width:120px;max-width:100%"><psicon pokemon=weezinggalar><psicon pokemon=chansey><psicon pokemon=gliscor><br><psicon pokemon=dondozo><psicon pokemon=toxapex><psicon pokemon=corviknight></div><p style="font-size:95%">Double Defog Chansey<br> Stall</a> by <b>Skymin3</b><br>&nbsp;<tr></table></details></div></center>

I used the following tricks:
  • removed spaces before/after : and ; in CSS
  • shortened #000000 to #000
  • removed <tbody> entirely
  • removed </td>, </tr>, and </p> (replaced </p><br> with <br>&nbsp; - it's worse, but necessary for the <a>-merge trick later)
  • replaced font-weight:bold with <b>
  • removed target="_blank" and rel="noopener" (they're added automatically by the sanitizer anyway)
  • the trickiest one: put the <a> tag outside the <div> so it can be merged with the other <a> tag under it. it's standards-compliant to treat <a> as a block-level tag, but starting it outside the <p> tag and ending it inside is not, but it saves a lot of space so it's totally worth it.
 
Last edited:
Back
Top