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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-06-2022, 05:49 PM   #1
dcortez
DINO CORTEZ™
 
dcortez's Avatar
 
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).

??
dcortez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

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



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.