Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

php - GZip Compression For JQuery Without Server Access -


all. required build website each page under 130kb. know jquery 1.4.4 ~28kb when it's g-zipped, it's 77kb minified, particular assignment. have built entire site using jquery in 1 implementation or on each page, scrapping mean days of wasted time.

with in mind,

1) can add content headers javascript file add "content-encoding: gzip" without modifying config files on server end? i'm uploading them university server, don't have access configuration. response header, server is: apache/1.3.26 (unitedlinux) mod_ssl/2.8.10 openssl/0.9.6g php/4.2.2 mod_perl/1.27

2) phpinfo file, know zlib compression enabled, "zlib.output_compression" not.

3) realize can done using .htaccess. however, i'd other way, if possible, since don't want school thinking i'm trying modify server configuration.

4) xhr's setrequestheader method work here, or asynchronous files?

i know short notice , all, final presentation tomorrow, , i'll lose ton of points if site on size limit. appreciated!

you have 2 options

  1. use jquery hosted somewhere else supports gzip. file here need include http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js gives lot more advantages such parallel downloading of files , quicker page load times.

  2. other options use php code zip jquery js , return it. here example http://www.lateralcode.com/gzip-files-with-htaccess-and-php/


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -