10

What is the role of user agent switcher?

https://addons.mozilla.org/en-US/firefox/addon/59

alt text

Is the user agent different than the rendering engine?

If a browser uses the same rendering engine then do we need to check on every browser?

Piper
  • 1,266
  • 3
  • 15
  • 26
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852

5 Answers5

10
  • A rendering engine is the engine that a browser uses to render the html (i.e. gecko vs webkit).
  • A user agent is how a browser identifies itself (i.e firefox 3.5).

But even if you switch the user agent of lets say firefox to safari, it will still use the gecko rendering engine to render it's page.

So to check how a page renders in different browsers you really need to render the page in those different browsers.

Thomas Maas
  • 1,999
  • 12
  • 8
  • and if some browser use same rendering engine then do we need to check on every browser or one is enough? – Jitendra Vyas Nov 30 '09 at 03:31
  • 1
    yes we still need to check if they use different versions of the the rendering engine: like safari doesn't use the same webkit version as chrome. – Thomas Maas Nov 30 '09 at 15:12
3

User agent is the string the browser sends along in the HTTP headers to identify itself. This is how various sites distinguish between IE, FireFox/Mozilla, Safari/Webkit, and the like.

A user agent informs the site of the rendering engine involved, but is not itself the rendering engine.

Wikipedia

Kevin Montrose
  • 22,191
  • 9
  • 88
  • 137
3

Role of User Agent Switcher is mainly to switch one browser to another browser which is called User agent. This is how all the server side language identifies through which software their application is accessed and which device etc.

What Wikipedia says about User agent?

When a software agent operates in a network protocol, it often identifies itself, its application type, operating system, software vendor, or software revision.

Have a look at Browser Arch and list of engines for each browser.

Browser Architecture

enter image description here

Browser Engines List

enter image description here

What is Rendering Engine?

  • Layout / Rendering Engine able to render the content of given URL in browser screen and interprets the HTML, XML and CSS.
  • It is single threaded. By default.
  • It displays data according to your specified content type (MIME). For Example HTML, Images, XML, CSS, JSON, PDF etc.

Click here to Refer to my Article to understand what is there behind Browser. https://medium.com/@ramsunvtech/behind-browser-basics-part-1-b733e9f3c0e6

Venkat.R
  • 7,420
  • 5
  • 42
  • 63
2

Some websites render content differently according to the User Agent that is being sent. For example, if the User Agent is IE 6, the language used to render the webpage (e.g. PHP) could be used to add a class "ie6" to an element, and then CSS is used to control what gets displayed or not. Or, a separate js file can be added depending on the user agent.

Some years ago, Opera recommended that you set the User Agent as IE 6, because websites will consistently not render if the User Agent was not any of IE or Mozilla. But, I think this is no longer the case.

Divya Manian
  • 1,927
  • 11
  • 16
-1
  • A user agent is software that is acting on behalf of a user.
  • A Rendering engine is a software used by the browser to render mark up code.

A user/client can change the user agent for a browser. Where as the way the browser renders the markup code does not change.

Swaraj89
  • 11
  • 1
  • 4