SlideShare a Scribd company logo
1 of 21
9 Useful Things That Every Web
Developer Needs to Know
Presented by:
Nadeem Khan
nadeem.khan@arkhitech.com
1. How to check the legitimacy of a
website?
โ—
Alexa Rank/Compete Rank
โ—
Google Page Rank
โ—
No. of Indexed Pages on Google
โ—
Moz Rank
โ—
Dmoz listing
โ—
Domain Age/Expiration
โ—
Web of Trust Ranking
โ—
โ—
Note: Social Media fan base has nothing to do with legitimacy of a
website. Many scam websites have thousands of fake fans on
Facebook, Twitter, Google+ etc.
โ—
How to check the legitimacy of a website?
(contโ€™d)
โ—
Use Webrank SEO for traffic ranks and Google Page Rank
(Alexa Rank below 25,000 and PR 3+ is good)
โ—
Google this โ€œsite:exampledomain.comโ€ and note the
number of pages indexed (higher is better)
โ—
For Moz Rank install Moz Bar extension (Moz Rank of 4+ is
good)
โ—
Manually check whether site is listed on Dmoz or not
(Dmoz only accepts quality and one of a kind websites)
โ—
Manually check Domain Age (3-4 years is normally good)
and Domain Expiration (2-4 years is normally good) via
http://whois.domaintools.com/
โ—
Green WOT Rank indicates safe website (Webrank SEO
extension shows WOT Rank also)
2. How to view a website in different
screen sizes?
โ—
Testing a responsive web design in different screen sizes is
really a hectic task
โ—
Say hello to Viewport-Resizer
โ—
Experimental browser tool available at
http://lab.maltewassermann.com/viewport-resizer/
How to view a website in different
screen sizes? (contโ€™d)
โ—
Custom view port size and auto animations are extremely
hand features of Viewport-Resizer
3. How to find what font or color a website
is using?
โ—
Colorzilla browser extension makes it a breeze to detect
the color of any element present on a page
โ—
Whatfont browser extension makes it a breeze to detect
the font of any text present on a page
4. How to detect the font of a text
present inside an image?
โ—
This is a very tricky thing but the community present at
http://www.myfonts.com/ is really good and quick about
it.
โ—
You just need to upload the image and the community
members there will identify the font within hours (its
absolutely free).
5. How to take a full/custom screenshot
and annotate it?
โ—
There are various browser extensions that can take
screenshots but nothing can come close to what
โ€œAwesome Screenshot: Capture and Annotateโ€
extension provides.
โ—
You can take full page, custom selected area
screenshots and then can crop, annotate and
label them easily.
6. How to determine the development
quality a website?
โ€ข Apart from the basic w3c HTML and CSS
validations, these tools are extremely handy:
โ€ข
โ—
http://gtmetrix.com/ (shows both YSlow and
Pagespeed reports)
โ—
http://media4x.com/test/
โ—
http://tools.pingdom.com/
โ—
http://developers.google.com/speed/pagespeed/in
sights/
โ—
7. How to speed up a website?
โ—
Use a CDN (e.g. MaxCDN and CloudFlare)
โ—
Leverage browser caching
โ—
HTML, CSS and JS Minification
โ—
Enable compression
โ—
Optimize and Scale Images
โ—
Combine CSS and JavaScript
โ—
Defer the parsing of JavaScript
โ—
Lazy Load all Images (e.g. jQuery Lazy Load)
โ—
Serve images from a different server
โ—
Use CSS Image Sprites ()
โ—
Choose web hosting wisely
โ—
โ—
โ—
โ—
7a. CDN
โ€ข A Content Delivery Network serves content (usually static content like
images and JavaScript) to end users from alternative servers that are
geographically closer to the users.
7b. Browser Cache
โ—
Browser caching enables a browser to "remember" the resources that it has
already loaded
โ—
Define these expire headers in your .htaccess file:
โ—
<IfModule mod_expires.c>
โ—
ExpiresActive On
โ—
ExpiresByType image/jpg "access 1 year"
โ—
ExpiresByType image/jpeg "access 1 year"
โ—
ExpiresByType image/gif "access 1 year"
โ—
ExpiresByType image/png "access 1 year"
โ—
ExpiresByType text/css "access 1 month"
โ—
ExpiresByType text/html "access 1 month"
โ—
ExpiresByType text/javascript "access 1 month"
โ—
ExpiresByType application/x-javascript "access 1 month"
โ—
ExpiresByType text/x-javascript "access 1 month"
โ—
ExpiresByType image/x-icon "access 1 year"
โ—
ExpiresByType application/xhtml+xml "access 1 month"
โ—
ExpiresDefault "access 1 year"
โ—
</IfModule>
7c. HTML, CSS and JS Minification
โ—
Use YSlow or Page Speed to detect resources that need
minification
โ—
Then minify CSS with 'yuicompressor' OR
http://cssminifier.com/
โ—
And JavaScript with 'yuicompressor' OR
http://javascript-minifier.com/
โ—
โ—
โ—
Note: Minification is nothing but removal of extra white
space, newlines, comments and tabs etc
7d. Image Optimization and Scaling
โ—
Use .jpg over .gif and .png whenever possible
โ—
Use Smush.it or RIOT to optimize images
โ—
Don't resize images in CSS or HTML and only serve scaled
images
โ—
Use RIOT or Photoshop to resize images
โ—
Define and fill the 'alt' attribute in all images (mandatory in
HTML5)
โ—
Use CSS over image whenever possible (mostly while
defining backgrounds)
7f. Lazy Load Images
โ— Lazy load all images below the fold using any of the
many JS libraries
7g. Serve Images from a different
server
โ—
Many browsers only allocate two sockets to downloading assets from a single
host. So, if index.html is downloaded from www.domain.com and it
references 6 image files, 3 javascript files, and 3 CSS files (all on
www.domain.com), the browser will download them 2 at a time, with the
other blocking until a socket is free.
โ—
Serve images from a sub-domain or a different server to enable parallel
downloading of resources (most CDNs offer this out of the box)
7h. CSS Image Sprites
โ—
A CSS image sprite is a collection of images put into a single
image to avoid multiple server requests.
โ—
Use any reliable tool like http://spritepad.wearekiss.com/#
to quickly generate a sprite and its CSS
7e. Deferring JavaScript Parsing
โ—
Processing of all elements below an external script is blocked until the
browser loads the code from disk and executes it.
โ—
Identify all JavaScript functions that are not actually used before the onload
event and place it in another external file which you can download after
the onload event.
โ—
Place this code just before the </body> tag:
โ—
<script type="text/javascript">
โ—
function downloadJSAtOnload() {
โ—
var element = document.createElement("script");
โ—
element.src = "defer.js";
โ—
document.body.appendChild(element);
โ—
}
โ—
if (window.addEventListener)
โ—
window.addEventListener("load", downloadJSAtOnload, false);
โ—
else if (window.attachEvent)
โ—
window.attachEvent("onload", downloadJSAtOnload);
โ—
else window.onload = downloadJSAtOnload;
โ—
</script>
7i. Choosing a web hosting
โ€ข A good web hosting company is extremely important but
its mostly a matter of opinion. Certain factors however
can help in making the right decision like:
โ—
Server Uptime
โ—
Server Response Time
โ—
Value of Money w.r.t Resources Offered
โ—
Customer Support
โ—
Positive Reputation and Reviews
8. How to optimize code for optimal
website performance?
โ—
Minimize global variables
โ—
Use hardcoded HTML in header as much as possible
โ—
Avoid DB calls as much as possible
โ—
Put/Include Stylesheets in the <head> and Scripts just
before the </body> tag
โ—
Inline small external CSS resources whenever possible
โ—
Write clean and validated HTML
โ—
Avoid CSS @import and use <link> instead
โ—
Avoid using HTML tables
โ—
Nesting HTML tables is a sin
โ—
Never leave an Image 'src' attribute empty
9. How to quickly make a static <div>
based design responsive?
โ€ข Its a simple two step process:
โ€ข
โ—
Defining media queries for different screen sizes
โ—
Setting auto/percentage widths with max-widths
โ—
โ—
โ—
Note: CSS Frameworks like Bootstrap or Foundation
automatically provide responsive UI elements

More Related Content

What's hot

Web development meetingup
Web development meetingupWeb development meetingup
Web development meetingup
PiTechnologies
ย 
JavaScript Jump Start
JavaScript Jump StartJavaScript Jump Start
JavaScript Jump Start
Haim Michael
ย 
Ymkm our-work-portfolio
Ymkm our-work-portfolioYmkm our-work-portfolio
Ymkm our-work-portfolio
You Might Know Me
ย 

What's hot (20)

Agriya services
Agriya servicesAgriya services
Agriya services
ย 
MEAN Stack
MEAN Stack MEAN Stack
MEAN Stack
ย 
Graphql Overview By Chirag Dodia
Graphql Overview By Chirag DodiaGraphql Overview By Chirag Dodia
Graphql Overview By Chirag Dodia
ย 
Lean frontend development
Lean frontend developmentLean frontend development
Lean frontend development
ย 
Ultimate guide on how to hire full stack web developer in 2022
Ultimate guide on how to hire full stack web developer in 2022Ultimate guide on how to hire full stack web developer in 2022
Ultimate guide on how to hire full stack web developer in 2022
ย 
Full stack web development
Full stack web developmentFull stack web development
Full stack web development
ย 
Go headless with shopify using vsf next by Viral Rana
Go headless with shopify using vsf next   by Viral RanaGo headless with shopify using vsf next   by Viral Rana
Go headless with shopify using vsf next by Viral Rana
ย 
Android Jump Start
Android Jump StartAndroid Jump Start
Android Jump Start
ย 
Node.js Jump Start
Node.js Jump StartNode.js Jump Start
Node.js Jump Start
ย 
The Full Stack Web Development
The Full Stack Web DevelopmentThe Full Stack Web Development
The Full Stack Web Development
ย 
Web development meetingup
Web development meetingupWeb development meetingup
Web development meetingup
ย 
JavaScript Jump Start
JavaScript Jump StartJavaScript Jump Start
JavaScript Jump Start
ย 
Pros and Cons of Node Js
Pros and Cons of Node JsPros and Cons of Node Js
Pros and Cons of Node Js
ย 
Ymkm our-work-portfolio
Ymkm our-work-portfolioYmkm our-work-portfolio
Ymkm our-work-portfolio
ย 
Muhammad azamuddin introduction-to-reactjs
Muhammad azamuddin   introduction-to-reactjsMuhammad azamuddin   introduction-to-reactjs
Muhammad azamuddin introduction-to-reactjs
ย 
Anatomy of a Progressive Web App
Anatomy of a Progressive Web AppAnatomy of a Progressive Web App
Anatomy of a Progressive Web App
ย 
Cake Php Consultant
Cake Php ConsultantCake Php Consultant
Cake Php Consultant
ย 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
ย 
Magento Headless Commerce with Vue Storefront - Piyush Lathiya
Magento Headless Commerce with Vue Storefront - Piyush LathiyaMagento Headless Commerce with Vue Storefront - Piyush Lathiya
Magento Headless Commerce with Vue Storefront - Piyush Lathiya
ย 
PWA basics for developers
PWA basics for developersPWA basics for developers
PWA basics for developers
ย 

Viewers also liked (8)

Search Engine Optimization Primer
Search Engine Optimization PrimerSearch Engine Optimization Primer
Search Engine Optimization Primer
ย 
Procedimiento transporte vehรญcular terrestre
Procedimiento transporte vehรญcular terrestreProcedimiento transporte vehรญcular terrestre
Procedimiento transporte vehรญcular terrestre
ย 
Dengue clinical features
Dengue clinical featuresDengue clinical features
Dengue clinical features
ย 
Il Governo Letta per la casa
Il Governo Letta per la casaIl Governo Letta per la casa
Il Governo Letta per la casa
ย 
Open house hollywood ppt
Open house hollywood pptOpen house hollywood ppt
Open house hollywood ppt
ย 
Open house hollywood ppt
Open house hollywood pptOpen house hollywood ppt
Open house hollywood ppt
ย 
Open house hollywood ppt
Open house hollywood pptOpen house hollywood ppt
Open house hollywood ppt
ย 
ENTROPION
ENTROPIONENTROPION
ENTROPION
ย 

Similar to 9 Useful Things that Every Web Developer Needs to Know

Similar to 9 Useful Things that Every Web Developer Needs to Know (20)

How QCLean Works? Introduction to Browser Extensions
How QCLean Works? Introduction to Browser ExtensionsHow QCLean Works? Introduction to Browser Extensions
How QCLean Works? Introduction to Browser Extensions
ย 
Javascript & SEO 2019
Javascript & SEO 2019Javascript & SEO 2019
Javascript & SEO 2019
ย 
jQuery Conference Austin Sept 2013
jQuery Conference Austin Sept 2013jQuery Conference Austin Sept 2013
jQuery Conference Austin Sept 2013
ย 
Optimizing your WordPress website
Optimizing your WordPress websiteOptimizing your WordPress website
Optimizing your WordPress website
ย 
PrairieDevCon 2014 - Web Doesn't Mean Slow
PrairieDevCon 2014 -  Web Doesn't Mean SlowPrairieDevCon 2014 -  Web Doesn't Mean Slow
PrairieDevCon 2014 - Web Doesn't Mean Slow
ย 
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Google I/O 2012 - Protecting your user experience while integrating 3rd party...Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
ย 
Lโ€™importance du crawl du JavaScript : pourquoi, comment et pour quels bรฉnรฉfic...
Lโ€™importance du crawl du JavaScript : pourquoi, comment et pour quels bรฉnรฉfic...Lโ€™importance du crawl du JavaScript : pourquoi, comment et pour quels bรฉnรฉfic...
Lโ€™importance du crawl du JavaScript : pourquoi, comment et pour quels bรฉnรฉfic...
ย 
Demystifying JavaScript & SEO
Demystifying JavaScript & SEODemystifying JavaScript & SEO
Demystifying JavaScript & SEO
ย 
Developing High Performance Web Apps
Developing High Performance Web AppsDeveloping High Performance Web Apps
Developing High Performance Web Apps
ย 
Navigating the critical rendering path - Jamie Alberico - VirtuaCon
Navigating the critical rendering path -  Jamie Alberico - VirtuaConNavigating the critical rendering path -  Jamie Alberico - VirtuaCon
Navigating the critical rendering path - Jamie Alberico - VirtuaCon
ย 
Need for Speed: Website Edition โ€“ Website Optimization Tools and Techniques P...
Need for Speed: Website Edition โ€“ Website Optimization Tools and Techniques P...Need for Speed: Website Edition โ€“ Website Optimization Tools and Techniques P...
Need for Speed: Website Edition โ€“ Website Optimization Tools and Techniques P...
ย 
You Can Work on the Web Patform! (GOSIM 2023)
You Can Work on the Web Patform! (GOSIM 2023)You Can Work on the Web Patform! (GOSIM 2023)
You Can Work on the Web Patform! (GOSIM 2023)
ย 
Seo for single page applications
Seo for single page applicationsSeo for single page applications
Seo for single page applications
ย 
External JavaScript Widget Development Best Practices (updated) (v.1.1)
External JavaScript Widget Development Best Practices (updated) (v.1.1) External JavaScript Widget Development Best Practices (updated) (v.1.1)
External JavaScript Widget Development Best Practices (updated) (v.1.1)
ย 
Web performance tuning
Web performance tuning Web performance tuning
Web performance tuning
ย 
Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More
ย 
How to develop browser extension
How to develop browser extensionHow to develop browser extension
How to develop browser extension
ย 
Demystifying web performance tooling and metrics
Demystifying web performance tooling and metricsDemystifying web performance tooling and metrics
Demystifying web performance tooling and metrics
ย 
Shining a light on performance (js meetup)
Shining a light on performance (js meetup)Shining a light on performance (js meetup)
Shining a light on performance (js meetup)
ย 
Optimizing WordPress Performance
Optimizing WordPress PerformanceOptimizing WordPress Performance
Optimizing WordPress Performance
ย 

Recently uploaded

๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
ย 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
SUHANI PANDEY
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
singhpriety023
ย 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
SUHANI PANDEY
ย 
( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...
nilamkumrai
ย 
Lucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRL
Lucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRLLucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRL
Lucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRL
imonikaupta
ย 
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
ย 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
ย 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
ย 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
ย 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
ย 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
ย 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
ย 
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
ย 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
ย 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
ย 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
ย 
( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls ๐ŸŽ—๏ธ 9352988975 Sizzling | Escorts | G...
ย 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
ย 
Lucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRL
Lucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRLLucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRL
Lucknow โคCALL GIRL 88759*99948 โคCALL GIRLS IN Lucknow ESCORT SERVICEโคCALL GIRL
ย 
๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
ย 
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
ย 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
ย 
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
ย 

9 Useful Things that Every Web Developer Needs to Know

  • 1. 9 Useful Things That Every Web Developer Needs to Know Presented by: Nadeem Khan nadeem.khan@arkhitech.com
  • 2. 1. How to check the legitimacy of a website? โ— Alexa Rank/Compete Rank โ— Google Page Rank โ— No. of Indexed Pages on Google โ— Moz Rank โ— Dmoz listing โ— Domain Age/Expiration โ— Web of Trust Ranking โ— โ— Note: Social Media fan base has nothing to do with legitimacy of a website. Many scam websites have thousands of fake fans on Facebook, Twitter, Google+ etc. โ—
  • 3. How to check the legitimacy of a website? (contโ€™d) โ— Use Webrank SEO for traffic ranks and Google Page Rank (Alexa Rank below 25,000 and PR 3+ is good) โ— Google this โ€œsite:exampledomain.comโ€ and note the number of pages indexed (higher is better) โ— For Moz Rank install Moz Bar extension (Moz Rank of 4+ is good) โ— Manually check whether site is listed on Dmoz or not (Dmoz only accepts quality and one of a kind websites) โ— Manually check Domain Age (3-4 years is normally good) and Domain Expiration (2-4 years is normally good) via http://whois.domaintools.com/ โ— Green WOT Rank indicates safe website (Webrank SEO extension shows WOT Rank also)
  • 4. 2. How to view a website in different screen sizes? โ— Testing a responsive web design in different screen sizes is really a hectic task โ— Say hello to Viewport-Resizer โ— Experimental browser tool available at http://lab.maltewassermann.com/viewport-resizer/
  • 5. How to view a website in different screen sizes? (contโ€™d) โ— Custom view port size and auto animations are extremely hand features of Viewport-Resizer
  • 6. 3. How to find what font or color a website is using? โ— Colorzilla browser extension makes it a breeze to detect the color of any element present on a page โ— Whatfont browser extension makes it a breeze to detect the font of any text present on a page
  • 7. 4. How to detect the font of a text present inside an image? โ— This is a very tricky thing but the community present at http://www.myfonts.com/ is really good and quick about it. โ— You just need to upload the image and the community members there will identify the font within hours (its absolutely free).
  • 8. 5. How to take a full/custom screenshot and annotate it? โ— There are various browser extensions that can take screenshots but nothing can come close to what โ€œAwesome Screenshot: Capture and Annotateโ€ extension provides. โ— You can take full page, custom selected area screenshots and then can crop, annotate and label them easily.
  • 9. 6. How to determine the development quality a website? โ€ข Apart from the basic w3c HTML and CSS validations, these tools are extremely handy: โ€ข โ— http://gtmetrix.com/ (shows both YSlow and Pagespeed reports) โ— http://media4x.com/test/ โ— http://tools.pingdom.com/ โ— http://developers.google.com/speed/pagespeed/in sights/ โ—
  • 10. 7. How to speed up a website? โ— Use a CDN (e.g. MaxCDN and CloudFlare) โ— Leverage browser caching โ— HTML, CSS and JS Minification โ— Enable compression โ— Optimize and Scale Images โ— Combine CSS and JavaScript โ— Defer the parsing of JavaScript โ— Lazy Load all Images (e.g. jQuery Lazy Load) โ— Serve images from a different server โ— Use CSS Image Sprites () โ— Choose web hosting wisely โ— โ— โ— โ—
  • 11. 7a. CDN โ€ข A Content Delivery Network serves content (usually static content like images and JavaScript) to end users from alternative servers that are geographically closer to the users.
  • 12. 7b. Browser Cache โ— Browser caching enables a browser to "remember" the resources that it has already loaded โ— Define these expire headers in your .htaccess file: โ— <IfModule mod_expires.c> โ— ExpiresActive On โ— ExpiresByType image/jpg "access 1 year" โ— ExpiresByType image/jpeg "access 1 year" โ— ExpiresByType image/gif "access 1 year" โ— ExpiresByType image/png "access 1 year" โ— ExpiresByType text/css "access 1 month" โ— ExpiresByType text/html "access 1 month" โ— ExpiresByType text/javascript "access 1 month" โ— ExpiresByType application/x-javascript "access 1 month" โ— ExpiresByType text/x-javascript "access 1 month" โ— ExpiresByType image/x-icon "access 1 year" โ— ExpiresByType application/xhtml+xml "access 1 month" โ— ExpiresDefault "access 1 year" โ— </IfModule>
  • 13. 7c. HTML, CSS and JS Minification โ— Use YSlow or Page Speed to detect resources that need minification โ— Then minify CSS with 'yuicompressor' OR http://cssminifier.com/ โ— And JavaScript with 'yuicompressor' OR http://javascript-minifier.com/ โ— โ— โ— Note: Minification is nothing but removal of extra white space, newlines, comments and tabs etc
  • 14. 7d. Image Optimization and Scaling โ— Use .jpg over .gif and .png whenever possible โ— Use Smush.it or RIOT to optimize images โ— Don't resize images in CSS or HTML and only serve scaled images โ— Use RIOT or Photoshop to resize images โ— Define and fill the 'alt' attribute in all images (mandatory in HTML5) โ— Use CSS over image whenever possible (mostly while defining backgrounds)
  • 15. 7f. Lazy Load Images โ— Lazy load all images below the fold using any of the many JS libraries
  • 16. 7g. Serve Images from a different server โ— Many browsers only allocate two sockets to downloading assets from a single host. So, if index.html is downloaded from www.domain.com and it references 6 image files, 3 javascript files, and 3 CSS files (all on www.domain.com), the browser will download them 2 at a time, with the other blocking until a socket is free. โ— Serve images from a sub-domain or a different server to enable parallel downloading of resources (most CDNs offer this out of the box)
  • 17. 7h. CSS Image Sprites โ— A CSS image sprite is a collection of images put into a single image to avoid multiple server requests. โ— Use any reliable tool like http://spritepad.wearekiss.com/# to quickly generate a sprite and its CSS
  • 18. 7e. Deferring JavaScript Parsing โ— Processing of all elements below an external script is blocked until the browser loads the code from disk and executes it. โ— Identify all JavaScript functions that are not actually used before the onload event and place it in another external file which you can download after the onload event. โ— Place this code just before the </body> tag: โ— <script type="text/javascript"> โ— function downloadJSAtOnload() { โ— var element = document.createElement("script"); โ— element.src = "defer.js"; โ— document.body.appendChild(element); โ— } โ— if (window.addEventListener) โ— window.addEventListener("load", downloadJSAtOnload, false); โ— else if (window.attachEvent) โ— window.attachEvent("onload", downloadJSAtOnload); โ— else window.onload = downloadJSAtOnload; โ— </script>
  • 19. 7i. Choosing a web hosting โ€ข A good web hosting company is extremely important but its mostly a matter of opinion. Certain factors however can help in making the right decision like: โ— Server Uptime โ— Server Response Time โ— Value of Money w.r.t Resources Offered โ— Customer Support โ— Positive Reputation and Reviews
  • 20. 8. How to optimize code for optimal website performance? โ— Minimize global variables โ— Use hardcoded HTML in header as much as possible โ— Avoid DB calls as much as possible โ— Put/Include Stylesheets in the <head> and Scripts just before the </body> tag โ— Inline small external CSS resources whenever possible โ— Write clean and validated HTML โ— Avoid CSS @import and use <link> instead โ— Avoid using HTML tables โ— Nesting HTML tables is a sin โ— Never leave an Image 'src' attribute empty
  • 21. 9. How to quickly make a static <div> based design responsive? โ€ข Its a simple two step process: โ€ข โ— Defining media queries for different screen sizes โ— Setting auto/percentage widths with max-widths โ— โ— โ— Note: CSS Frameworks like Bootstrap or Foundation automatically provide responsive UI elements