Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
gzip javascript?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 31.10.2006 15:04    Post subject: gzip javascript? Add user to your forum ignore list Reply with quote

OK već mi je dosta - pola developera u svijetu govori "gzipaj sav .css i .js, to ti je super," dok druga polovica govori "nemoj slučajno, IE se guši pod time" Mad

Zna li netko pouzdano koji se osim browsera 4. generacije guše pod gzippanim .js fajlovima, da li bug slijedi neki pattern ili je potpuno random?

Za one koji ne znaju, pod "gušenje" mislim nepravilno odpakiravanje i izvršavanje gzipanog .js fajla - ljudi govore da se skripta zna izvršiti samo do pola što dovodi do mnogih JS grešaka pri loadu i bugova kad se kasnije klika po stranici Confused

Maratz? Sad

thnx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 31.10.2006 17:46    Post subject: Add user to your forum ignore list Reply with quote

Sto se explorera tice, radi se o tome da ne procita kompletan http request... IE6 konkretno: http://support.microsoft.com/kb/823386

Nagadjam da je bug vjerojatno prisutan i u starijim verzijama IEa...
Koliko sam se susretao s tim, ekipa samo za IE iskljuci gzipping, ostalima nudi gzippano...

HTH

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 31.10.2006 17:57    Post subject: Add user to your forum ignore list Reply with quote

Zyt, pa ti lurkaš! Smile thnx

Kako vi (burza) prakticirate, conditional gzip ili nekompresirano?

EDIT: ček, pa ako je hotfix iz 2003 onda je sigurno za pretpostavit da većina ima patch?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 31.10.2006 18:15    Post subject: Add user to your forum ignore list Reply with quote

uncompressed...

sto se hotfixa tice, nemam pojma, ali nesto mi govori da nije isao kroz automatic updates... A ako nije... Penetracija mu je vjerojatno nikakva.

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 31.10.2006 21:47    Post subject: Add user to your forum ignore list Reply with quote

ja ga gzipam i nisam primijetio nekih problema oko toga (gzipanja JSa)
recimo gzipanje HTML-a mi je pravilo probleme, prazan sadrzaj, pa sam morao F5 itd..

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 31.10.2006 23:21    Post subject: Add user to your forum ignore list Reply with quote

gzipanje HTML-a ti je bio problem, a JS nije?

ljudi gzipaju HTML bez beda Confused site5 (kod kojeg sam) gzipa po defaultu svima sav output PHP-a

eto o tome pričam Sad carr nema problema sa JS, ali izbjegava HTML, neki izbjegavaju JS a bez beda zipaju HTML, neki zipaju sve, neki ništa

kako se u htaccess može napraviti neki conditional block na osnovu user-agent stringa u kojem bi stajale direktive? excludao bih IE<7 kod gzipanja JS Confused
Back to top
View user's profile Send private message Send e-mail Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 02.11.2006 15:35    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
gzipanje HTML-a ti je bio problem, a JS nije?

ljudi gzipaju HTML bez beda Confused site5 (kod kojeg sam) gzipa po defaultu svima sav output PHP-a

gzipam i ja, ali kazem, cudno mi se ponasao u IE-u, recimo nakon refresha bi bio dobar, inace sam znao dobiti bijeli ekran... ne uvijek..

slazem se da je osjetljiva tema.

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
damir



Joined: 10 Jul 2004
Posts: 49

PostPosted: 02.11.2006 17:52    Post subject: Add user to your forum ignore list Reply with quote

zakaj bi uopće zipao kad se može keširati u browseru ili proxiju?

par extra sekundi će svi pričekati na prvom učitavanju valjda Razz

_________________
pass the joint ...
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 02.11.2006 17:59    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
kako se u htaccess može napraviti neki conditional block na osnovu user-agent stringa u kojem bi stajale direktive? excludao bih IE<7 kod gzipanja JS Confused

zoveš normalno iz HTML-a .js.php (koji se gzipa), a mod rirajtaš na 'obični' .js ako ti je useragent IE.

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 02.11.2006 18:05    Post subject: Add user to your forum ignore list Reply with quote

damir wrote:
zakaj bi uopće zipao kad se može keširati u browseru ili proxiju?

meni su rekli da se JS ne kešira

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
damir



Joined: 10 Jul 2004
Posts: 49

PostPosted: 02.11.2006 19:17    Post subject: Add user to your forum ignore list Reply with quote

maratz wrote:
damir wrote:
zakaj bi uopće zipao kad se može keširati u browseru ili proxiju?

meni su rekli da se JS ne kešira


Surprised

http://www.webteh.hr/portal_javascripts/Plone%20Tableless/ploneScripts2431.js

HTTP/1.1 200 OK
Date: Thu, 02 Nov 2006 17:06:10 GMT
Server: Zope/(Zope 2.9.3-, python 2.4.3, linux2) ZServer/1.1 Plone/2.5.1-rc1
Content-Length: 66442
X-Cache-Headers-Set-By: CachingPolicyManager: /webteh/caching_policy_manager
Accept-Ranges: bytes
Expires: Fri, 02 Nov 2007 17:06:10 GMT
Last-Modified: Thu, 02 Nov 2006 17:06:10 GMT
X-Caching-Rule-Id: resource-registries
Cache-Control: max-age=31536000, public
Content-Type: application/x-javascript;charset=utf-8
X-Header-Set-Id: cache-in-browser-forever
Via: 1.1 www.webteh.hr

Pa sve se može keširati kaj prolazi webom zar ne?

_________________
pass the joint ...
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 03.11.2006 21:44    Post subject: Add user to your forum ignore list Reply with quote

hm... ono što server pošalje, ne znači nužno da će browser poštivati -- primjerice, keširanje rollover slika u IE. Opera recimo po defaultu reloada svaki file nakon 5 dana... probat ću iskopati negdje te podatke.

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group