aspose file tools
The moose likes Performance and the fly likes improve speed of web pages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "improve speed of web pages" Watch "improve speed of web pages" New topic
Author

improve speed of web pages

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

Hello,

I need to find ways by which we can improve web page speed. I come to know some of general aspects for it like avoiding JS, graphics, widgets etc etc. but is there any ways, which we could change in our html coding by which pages we can explore web pages faster? HTML 5 is also an option but what what are the other option in it to make it more better.


Thanks,
KS


No Kaustubh No Fun, Know Kaustubh Know Fun..
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1493
Is it pure HTML? then whatever you have mentioned like JS and graphics should be considered, thing would different if page is dynamic. You would need to consider server side delays which is another big deal in itself.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35246
    
    7
Before you make any changes you need to determine where the perceived slowness comes from. Is it really because of the HTML/CSS/JS content? Or is maybe the ntework connectivity bad? Is the web server or the DB slow? Before you have answered these questions in detail, any optimization is premature.


Android appsImageJ pluginsJava web charts
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

Ulf Dittmer wrote:Before you make any changes you need to determine where the perceived slowness comes from. Is it really because of the HTML/CSS/JS content? Or is maybe the ntework connectivity bad? Is the web server or the DB slow? Before you have answered these questions in detail, any optimization is premature.


I am just looking for fectors which make website soon and what we can do it to make it fast. This is kind of pre development research. I don't have any idea what html they'll use for it, but there must be some code tricks, tools or perticular option which we can use and could avoid to make it fast.

Some example that I have got from google is to avoid :

Too Many HTTP Requests:

Minimal Client-side Processing

Failure to leverage browser cache / local storage

Third-party widgets

Too many bytes



and Some we must use for best practise are::


Using HTML 5 for performance improvements (In detail)
Reducing the file size of HTML documents (In detail)
Speeding up JavaScript: Working with the DOM (In detail)
Minimizing browser reflow (In detail)
Optimizing caching(In detail)
Compressing your JavaScript with Closure Compiler (In detail)
Capturing and analyzing browser paint events using Page Speed Activity (In detail)
Web metrics: Size and number of resources(In detail)
Optimizing JavaScript code (In detail)
Optimizing web graphics (In detail)
Optimizing OpenSocial gadgets (In detail)
Prefetching resources (In detail)
Using web accelerator (In detail)
Use a CDN(In detail)
Add an Expires header
Put stylesheets at the top and scripts at the bottom
Avoid CSS expressions
Reduce DNS lookups
Avoid redirects
Configure ETags
Make AJAX cacheable



What else we can do to make it speedy
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

Akhilesh Trivedi wrote:Is it pure HTML? then whatever you have mentioned like JS and graphics should be considered, thing would different if page is dynamic. You would need to consider server side delays which is another big deal in itself.


not sure about the version it may be 4 or 5, but they'll use HTML for sure
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35246
    
    7
Start by using tools such as YSlow and PageSpeed. Plus, measure where the time goes - network, web server, DB server, rendering, ...
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4422
    
    2

You have far more than you need to start. Follow @Ulf's advice, use existing technology to measure the current performance. Its pointless to speed up things that are not slow, and you can't know until you measure.
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 1272
    
    7

Premature optimization is the root of all evil. GO for the simplest solution first.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6588
    
    1

I come to know some of general aspects for it like avoiding JS, graphics, widgets etc etc. but is there any ways, which we could change in our html coding by which pages we can explore web pages faster? HTML 5 is also an option but what what are the other option in it to make it more better.


Why would you avoid JS ? Why do you think loading pages written on HTML 5 is faster ?

It sounds to me like you have a hammer and you're looking for nails that may not exist.


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

Deepak Bala wrote:
I come to know some of general aspects for it like avoiding JS, graphics, widgets etc etc. but is there any ways, which we could change in our html coding by which pages we can explore web pages faster? HTML 5 is also an option but what what are the other option in it to make it more better.


Why would you avoid JS ? Why do you think loading pages written on HTML 5 is faster ?

It sounds to me like you have a hammer and you're looking for nails that may not exist.


Hello Deepak... Mentioned ain't my aspects. I did google for it and found out these facts. I really appreciate if you help me to correct it.

Best Regards,
Kaustubh
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: improve speed of web pages
 
Similar Threads
File upload/download using UDP
Apache Web Server and Tomcat container.
OutOfMemoryError during the pdf report generation
Web 2.0
CSS Sprite