aspose file tools*
The moose likes Performance and the fly likes improve speed of web pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
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: 1270

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: 1526
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: 41843
    
  63
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.


Ping & DNS - my free Android networking tools app
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

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: 1270

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: 41843
    
  63
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: 4657
    
    5

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: 2376
    
  28

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

Joined: Feb 24, 2006
Posts: 6661
    
    5

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 - More SCJP Mocks
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

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
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 163

You could try https://developers.google.com/speed/pagespeed/service (there is a apache httpd module which can optimize the html+css, for example)


Please, visit me for some cool tech post at www.ourdailycodes.com
Sam Jimzz
Greenhorn

Joined: Apr 30, 2011
Posts: 28

Basic work around will be like, reducing the 3rd party links from your webpage..

for eg:

instead of www.***.com/js/**.js

you can keep that .js file inside your container like., ../js/**.js


God Loves You and will never love you less.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: improve speed of web pages