Disabling android’s chrome pull-down-to-refresh feature

The default action of the pull-to-refresh effect can be effectively prevented by doing any of the following : preventDefault’ing some portion of the touch sequence, including any of the following (in order of most disruptive to least disruptive): a. The entire touch stream (not ideal). b. All top overscrolling touchmoves. c. The first top overscrolling … Read more

CodeIgniter: A Class/Library to help get meta tags from a web page?

You should have a look at this class: PHP Simple HTML DOM it works this way: include(‘simple_html_dom.php’); $html = file_get_html(‘http://www.codeigniter.com/’); echo $html->find(‘title’, 0)->innertext; // get <title> echo “<pre>”; foreach($html->find(‘meta’) as $element) echo $element->name . ” : ” . $element->content . ‘<br>’; //prints every META tag echo “</pre>”;

Angular 4 – Update Meta tags dynamically for Facebook (Open graph)

Open Graph OG Tags must be within the sourcecode! You need to provide a static html page containing the the open graph tags like og:image og:title and og:description in the html sourcecode, since facebook, twitter and co a just scraping the plain html without rendering it through javascript. Angular dynamically updates the dom through js … Read more

How to add meta tag in JavaScript

You can add it: var meta = document.createElement(‘meta’); meta.httpEquiv = “X-UA-Compatible”; meta.content = “IE=edge”; document.getElementsByTagName(‘head’)[0].appendChild(meta); …but I wouldn’t be surprised if by the time that ran, the browser had already made its decisions about how to render the page. The real answer here has to be to output the correct tag from the server in … Read more

What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?

They are viewport meta tags, and is most applicable on mobile browsers. width=device-width This means, we are telling to the browser “my website adapts to your device width”. initial-scale This defines the scale of the website, This parameter sets the initial zoom level, which means 1 CSS pixel is equal to 1 viewport pixel. This … Read more

Which are the standard W3C meta tags?

HTML5 You can only use the following values in HTML5. If you need a value not listed, you’d have to register it first. name values Standard metadata names (defined in the HTML5 spec) MetaExtensions (registered in the WHATWG wiki according to the HTML5 spec) http-equiv values Pragma directives (defined in the HTML5 spec) PragmaExtensions (registered … Read more