html код google

Discussion in 'PHP' started by GAiN, 17 Jan 2018.

  1. GAiN

    GAiN Elder - Старейшина

    Joined:
    2 Apr 2011
    Messages:
    2,550
    Likes Received:
    172
    Reputations:
    99
    если смотреть на html код гугла, то он выгледит странно
    view-source:https://www.google.ru/
    Code:
    ,4048980,4050750,4051887,4056126,4056682,4058016,4061666,4061980,4062724,4064468,4064796,4069829,4078588,4080760,4081039,4081165,4082230,4096834,4097153,4097922,4097929,4098721,4098728,4098752,4102238,4103475,4103845,4104202,4105241,4106647,4109293,4109316,4109489,4110086,4110931,4112771,4115624,4116351,4116926,4116935,4117980,4118798,4120660,4120911,4121805,4122511,4124091,4124850,4124956,4124963,4125250,4125252,4125837,4126206,4126754,4126869,4127262,4127307,4127473,4127744,4127863,4128568,4128586,4128998,4129520,4129632,4130782,4131247,4131370,4131834,4132821,4133797,4134398,4135025,4135934,4136073,4137597,4137646,4139719,4139720,4139722,4139727,4139728,4139730,4140031,4140104,4140232,4140236,4140276,4140291,4140292,4140322,4140337,4140338,4140732,4140786,4141160,4141174,4141298,4141601,4142071,4142328,4142420,4142519,4142521,4142523,4142582,4142678,4142834,4142849,4143032,4143278,4143901,4144442,4144544,4144759,4145084,4145088,4145109,4145173,4145186,4145461,4145485,4145724,4145772,4145836,4145966,4146146,4146192,4146741,4146783,4146877,4147096,4147951,4148268,4148304,4148396,4148498,4148521,4148636,4149137,4149154,4149548,4149912,4149981,6512220,10200083,10202524,10202562,15807764,19000288,19000423,19000427,19001999,19002287,19002288,19002366,19002548,19002881,19003321,19003323,19003325,19003326,19003328,19003329,19003330,19003407,19003408,19003409,19004309,19004516,19004517,19004518,19004519,19004520,19004521,19004668,19004670,19004692,19004729,22312956',authuser:0,kscs:'c9c918f0_3opfWq7pHYLF6ATi84eICQ',u:'c9c918f0',kGL:'RU'};google.kHL='ru';})();(function(){google.lc=[];google.li=0;google.getEI=function(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||google.kEI};google.getLEI=function(a){for(var b=null;a&&(!a.getAttribute||!(b=a.getAttribute("leid")));)a=a.parentNode;return b};google.https=function(){return"https:"==window.location.protocol};google.ml=function(){return null};google.wl=function(a,b){try{google.ml(Error(a),!1,b)}catch(d){}};google.time=function(){return(new Date).getTime()};google.log=function(a,b,d,c,g){if(a=google.logUrl(a,b,d,c,g)){b=new Image;var e=google.lc,f=google.li;e[f]=b;b.onerror=b.onload=b.onabort=function(){delete e[f]};google.vel&&google.vel.lu&&google.vel.lu(a);b.src=a;google.li=f+1}};google.logUrl=function(a,b,d,c,g){var e="",f=google.ls||"";d||-1!=b.search("&ei=")||(e="&ei="+google.getEI(c),-1==b.search("&lei=")&&(c=google.getLEI(c))&&(e+="&lei="+c));c="";!d&&google.cshid&&-1==b.search("&cshid=")&&(c="&cshid="+google.cshid);a=d||"/"+(g||"gen_204")+"?atyp=i&ct="+a+"&cad="+b+e+f+"&zx="+google.time()+c;/^http:/i.test(a)&&google.https()&&(google.ml(Error("a"),!1,{src:a,glmm:1}),a="");return a};}).call(this);(function(){google.y={};google.x=function(a,b){if(a)var c=a.id;else{do c=Math.random();while(google.y[c])}google.y[c]=[a,b];return!1};google.lm=[];google.plm=function(a){google.lm.push.apply(google.lm,a)};google.lq=[];google.load=function(a,b,c){google.lq.push([[a],b,c])};google.loadAll=function(a,b){google.lq.push([a,b])};}).call(this);google.f={};(function(){google.hs={h:true};})();(function(){google.c={c:{a:true,d:true,e:true,g:false,i:false,m:true,n:false}};google.sn='webhp';(function(){var e={gen204:"iml",clearcut:8};var f=function(a,b,c){a.addEventListener?a.removeEventListener(b,c,!1):a.attachEvent&&a.detachEvent("on"+b,c)},h=function(a,b,c){g.push({h:a,l:b,o:c});a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)},g=[];google.timers={};google.startTick=function(a,b){var c=b&&google.timers[b].t?google.timers[b].t.start:google.time();google.timers[a]={t:{start:c},e:{},m:{}};(c=window.performance)&&c.now&&(google.timers[a].wsrt=Math.floor(c.now()))};google.tick=function(a,b,c){google.timers[a]||google.startTick(a);c=void 0!==c?c:google.time();b instanceof Array||(b=[b]);for(var d=0;d<b.length;++d)google.timers[a].t[b[d].clearcut]={key:b[d],ts:c}};google.c.e=function(a,b,c){google.timers[a].e[b]=c};google.c.b=function(a){var b=google.timers.load.m;b[a]&&google.wl("ch_mab",{m:a});b[a]=!0};google.c.u=function(a){var b=google.timers.load.m;if(b[a]){b[a]=!1;for(a in b)if(b[a])return;google.csiReport()}else google.wl("ch_mnb",{m:a})};google.rll=function(a,b,c){var d=function(b){c(b);f(a,"load",d);f(a,"error",d)};h(a,"load",d);b&&h(a,"error",d)};google.ull=function(){for(var a;a=g.shift();)f(a.h,a.l,a.o)};google.iTick=function(a){var b=google.time();google.tick("load",e,b);a=a.id||a.src||a.name;google.timers.iml||google.startTick("iml");google.timers.iml.t[a]=b;google.c.c.a&&(google.timers.aft||google.startTick("aft"),google.timers.aft.t[a]=b)};google.afte=!0;google.aft=function(a){google.c.c.a&&google.afte&&(google.timers.aft||google.startTick("aft"),google.timers.aft.t[a.id||a.src||a.name]=google.time())};(google.c.c.e||google.c.c.g)&&google.startTick("webaft");google.startTick("load");google.c.b("pr");google.c.b("xe");}).call(this);})();var a=window.location,b=a.href.indexOf("#");if(0<=b){var c=a.href.substring(b+1);/(^|&)q=/.test(c)&&-1==c.indexOf("#")&&a.replace("/search?"+c.replace(/(^|&)fp=[^&]*/g,"")+"&cad=h")};(function(){var k=this,l=Date.now||function(){return+new Date};var t={};var v=function(a,d){if(null===d)return!1;if("contains"in a&&1==d.nodeType)return a.contains(d);if("compareDocumentPosition"in a)return a==d||!!(a.compareDocumentPosition(d)&16);for(;d&&a!=
    почему у них такой вид кода страницы ? у яндекса такой же вид.
    что это за стиль кода такой ?
     
  2. crlf

    crlf Green member

    Joined:
    18 Mar 2016
    Messages:
    683
    Likes Received:
    1,513
    Reputations:
    460
    Это оптимизация. Выкинув табуляцию, переносы строк и пробелы, можно значительно уменьшить размер страницы.
     
    GAiN and Sun2017 like this.
  3. MihailZemin

    MihailZemin New Member

    Joined:
    15 Jan 2018
    Messages:
    2
    Likes Received:
    0
    Reputations:
    0
    Чего не знаю, того не знаю..
     
  4. t0ma5

    t0ma5 Reservists Of Antichat

    Joined:
    10 Feb 2012
    Messages:
    829
    Likes Received:
    815
    Reputations:
    90
    держи нас в курсе)
     
    _________________________
    ShpillyWilly and erwerr2321 like this.