![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
DINO CORTEZ™
Industry Role:
Join Date: Jun 2003
Location: Vancouver Island
Posts: 2,145
|
Max line length in JavaScript/HTML?
The answer to this may seem obvious, but I cannot find any online limit that is compatible with Minification/Obfuscation...
Consider the following: SCRIPT var A = 'aaaaaaaaaa'; var B = 'bbbbbbbbbb'; var C = 'cccccccccccc'; ... var Z = 'zzzzzzzzzzzz'; /SCRIPT I would like to compact that to: SCRIPT var A = 'aaaaaaaaaa'; var B = 'bbbbbbbbbb'; var C = 'cccccccccccc'; ... var Z = 'zzzzzzzzzzzz'; /SCRIPT The 'how' is easy, but I am concerned about breaking limits for text blob lengths in HTML, between SCRIPT tags. ie. A real life text blob could be 16k chars or more. All references to HTML and JS max line lengths seem to suggest 100 chars - for HTML that has to do with fitting lines within HTTP transfer blocks, and for JS, it's only for readability (which is not applicable here). ?? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
|||||||
|
|||||||
Bookmarks |
Tags |
var, script, html, cccccccccccc;, zzzzzzzzzzzz;, bbbbbbbbbb;, aaaaaaaaaa;, /script, lengths, line, chars, blob, text, max, blocks, readability, 16k, references, http, fitting, lines, applicable, life, suggest, transfer |