rendering-engine

What is the best HTML Rendering Engine to embed in an application? [closed]

无人久伴 提交于 2019-12-03 09:38:39
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . At the moment, our application uses the Trident Win32 component, but we want to move away from that for a few reasons, chief among them being our desire to go cross-platform. We're looking at WebKit and Gecko, but I'd love to get some feedback before I make a decision. Here

Mobile device detection for rendering rich web content

梦想的初衷 提交于 2019-12-01 11:37:18
What are the most web-capable mobile phones to date (models and / or user agents) and What rules should be assessed when trying to determine if they will handle a rich mobile-customised site? I am developing a mobile website and currently doing some user agent detection to determine if the mobile device should see a fully enhanced js, jquery mobile, css view, or plain a fallback one. Here is what I currently have for my two questions, and I would like some input / suggestions on how this can be improved - this filtering is assessed top-to-bottom: Enhanced view if the user agent contains the

Mobile device detection for rendering rich web content

眉间皱痕 提交于 2019-12-01 08:49:56
问题 What are the most web-capable mobile phones to date (models and / or user agents) and What rules should be assessed when trying to determine if they will handle a rich mobile-customised site? I am developing a mobile website and currently doing some user agent detection to determine if the mobile device should see a fully enhanced js, jquery mobile, css view, or plain a fallback one. Here is what I currently have for my two questions, and I would like some input / suggestions on how this can

How to detect browser rendering engine in javascript?

喜你入骨 提交于 2019-12-01 05:18:19
I read a book calls 'Professional Javascript For Web Developers 2nd edition' and it state that this code can detect browser rendering engine: <script type="text/javascript"> var client = function(){ var engine = { ie: 0, gecko: 0, webkit: 0, khtml: 0, opera: 0, ver: null }; return { engine : engine }; }(); if(client.engine.ie){ alert("This is internet explorer"); }else if(client.engine.gecko > 1.5){ if(client.engine.ver == "1.8.1"){ alert("This is gecko rendering browser"); } }else if(client.engine.webkit){ alert("This is web kit"); }else if(client.engine.khtml){ alert("This is khtml"); }else{

How to detect browser rendering engine in javascript?

那年仲夏 提交于 2019-12-01 03:07:23
问题 I read a book calls 'Professional Javascript For Web Developers 2nd edition' and it state that this code can detect browser rendering engine: <script type="text/javascript"> var client = function(){ var engine = { ie: 0, gecko: 0, webkit: 0, khtml: 0, opera: 0, ver: null }; return { engine : engine }; }(); if(client.engine.ie){ alert("This is internet explorer"); }else if(client.engine.gecko > 1.5){ if(client.engine.ver == "1.8.1"){ alert("This is gecko rendering browser"); } }else if(client

Vertex shader attribute mapping in GLSL

给你一囗甜甜゛ 提交于 2019-11-29 19:37:27
I'm coding a small rendering engine with GLSL shaders: Each Mesh (well, submesh) has a number of vertex streams (eg. position,normal,texture,tangent,etc) into one big VBO and a MaterialID. Each Material has a set of textures and properties (eg. specular-color, diffuse-color, color-texture, normal-map,etc) Then I have a GLSL shader, with it's uniforms and attributes. Let's say: uniform vec3 DiffuseColor; uniform sampler2D NormalMapTexture; attribute vec3 Position; attribute vec2 TexCoord; I'm a little bit stuck in trying to design a way for the GLSL shader to define the stream mappings

Which CSS selectors or rules can significantly affect front-end layout / rendering performance in the real world?

不羁的心 提交于 2019-11-28 15:23:08
Is it worth worrying about CSS rendering performance? Or should we just not worry about efficiency at all with CSS and just focus on writing elegant or maintainable CSS instead? This question is intended to be a useful resource for front-end developers on which parts of CSS can actually have a significant impact on device performance, and which devices / browsers or engines may be affected. This is not a question about how to write elegant or maintainable CSS, it's purely about performance (although hopefully what's written here can inform more general articles on best-practice). Existing

Vertex shader attribute mapping in GLSL

随声附和 提交于 2019-11-28 15:21:01
问题 I'm coding a small rendering engine with GLSL shaders: Each Mesh (well, submesh) has a number of vertex streams (eg. position,normal,texture,tangent,etc) into one big VBO and a MaterialID. Each Material has a set of textures and properties (eg. specular-color, diffuse-color, color-texture, normal-map,etc) Then I have a GLSL shader, with it's uniforms and attributes. Let's say: uniform vec3 DiffuseColor; uniform sampler2D NormalMapTexture; attribute vec3 Position; attribute vec2 TexCoord; I'm

Which CSS selectors or rules can significantly affect front-end layout / rendering performance in the real world?

南笙酒味 提交于 2019-11-27 09:11:00
问题 Is it worth worrying about CSS rendering performance? Or should we just not worry about efficiency at all with CSS and just focus on writing elegant or maintainable CSS instead? This question is intended to be a useful resource for front-end developers on which parts of CSS can actually have a significant impact on device performance, and which devices / browsers or engines may be affected. This is not a question about how to write elegant or maintainable CSS, it's purely about performance

How is CSS applied by the browser, and are repaints affected by it?

落花浮王杯 提交于 2019-11-26 19:12:15
问题 Let's say we have an HTML page with a single stylesheet <link> . How does the browser take the rules in this stylesheet and apply it to the HTML? I'm not asking about how to make it faster, I want to know how the rendering itself is handled. Does it apply each rule one-by-one as it parses the stylesheet and render the result progressively? Or, are the CSS file's contents completely downloaded, then fully evaluated, and then applied to the HTML all at once? Or something else? I ask this after