This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

improve speed of web pages

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start by using tools such as YSlow and PageSpeed. Plus, measure where the time goes - network, web server, DB server, rendering, ...
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Premature optimization is the root of all evil. GO for the simplest solution first.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 163
C++ Redhat Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try https://developers.google.com/speed/pagespeed/service (there is a apache httpd module which can optimize the html+css, for example)
 
Sam Jimzz
Greenhorn
Posts: 28
Eclipse IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic