Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimization of final HTML code
(04-24-2020, 09:14 PM)DanBarclay Wrote: You may want to obfuscate your js code during build.  That also means you only do it once, and none at runtime.

For changing/killing the "generator" string, there is an event for that.  See IWServerControllerBaseMetaTag()


Yes, I know how to do it, see my last post.
This is the only thing I can do now to improve my html code.

It works but...
I still need to write the html code in one line.

For example.
Normal html code:
<html lang="en">
<meta charset="utf-8">

<link href="/$/css/IWNotify__2753029400.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" nonce="4V82b6g5AalSsGNFvKJsVWTxuvc">
var GURLBase="/TPtuF1zNx6pQVhHlIxAcVLgaFp8/$/", GAppID="i1QKDuL3x5dX0ZvnGSfrEsr-trC", GTrackID=1;
function doOnReady(f){
   var d = document;
   if (d.readyState!="loading") f();
   else if (d.addEventListener) d.addEventListener("DOMContentLoaded", f);
   else d.attachEvent("onreadystatechange", function(){if (d.readyState=="complete") f();})
<script type="text/javascript" src="/$/js/IWBase__2847485697.js"></script>
<script type="text/javascript" src="/$/js/IWGecko__1086946337.js"></script>
<script type="text/javascript" nonce="4V82b6g5AalSsGNFvKJsVWTxuvc">
function Body_OnBlur(){GSubmitting = false;}
function FormDefaultSubmit(event){return false;}
function IWTop(){return window;}
function Validate() {
  return true;



Code optimized in one line with my simple function:
<!DOCTYPE HTML><html lang="en"><head><meta charset="utf-8"><title></title><link href="/$/css/IWNotify__2753029400.css" rel="stylesheet" type="text/css"/><script type="text/javascript" nonce="4V82b6g5AalSsGNFvKJsVWTxuvc">var GURLBase="/TPtuF1zNx6pQVhHlIxAcVLgaFp8/$/", GAppID="i1QKDuL3x5dX0ZvnGSfrEsr-trC", GTrackID=1;function doOnReady(f){   var d = document;   if (d.readyState!="loading") f();   else if (d.addEventListener) d.addEventListener("DOMContentLoaded", f);   else d.attachEvent("onreadystatechange", function(){if (d.readyState=="complete") f();})}</script><script type="text/javascript" src="/$/js/IWBase__2847485697.js"></script><script type="text/javascript" src="/$/js/IWGecko__1086946337.js"></script><script type="text/javascript" nonce="4V82b6g5AalSsGNFvKJsVWTxuvc">function Body_OnBlur(){GSubmitting = false;}function FormDefaultSubmit(event){return false;}function IWTop(){return window;}function Validate() {  return true;}(...)</script></body></html>

I just need this simple optimization.

Is it possible to use my code for optimization or something similar?

Messages In This Thread
Optimization of final HTML code - by TPiotr - 04-21-2020, 08:09 PM
RE: Optimization of final HTML code - by TPiotr - 04-24-2020, 10:01 AM
RE: Optimization of final HTML code - by TPiotr - 04-25-2020, 07:46 AM

Forum Jump:

Users browsing this thread: 2 Guest(s)