GithubHelp home page GithubHelp logo

blog's People

Contributors

joahg avatar myshov avatar philipwalton avatar rmacklin avatar tomayac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blog's Issues

article 'Page Lifecycle API' unload event confused

Hi, I am new to Web development. I read you artical Page Lifecycle API | Web | Google Developers, it helps a lot. I have a little confusion:
In the unload event section, you say:

If you need to support Internet Explorer versions 10 and lower, you should feature detect the pagehide event and only use unload if the browser doesn't support pagehide:

and you use the code below:

const terminationEvent = 'onpagehide' in self ? 'pagehide' : 'unload';

I test the code in my project, it seems if we want suprot ie10 and lower, the const can't be supported according to const - Javascirpt | MDN, may be we should use var? I use var successfully in my project.

And I have another problem, if my project don't need to supprot moblie, will using unload directly cause some problems?
Sorry for my poor English. Wish I can be understood. Thanks.

Link underline invisible

This is what a paragraph looks like on my latest Chrome on a non-retina MacBook 13':
screen shot 2015-12-07 at 01 04 08

This is what it should look like:
screen shot 2015-12-07 at 01 03 58

On my machine the font-size: 1.0625em converts to 17px. The line-height: 1.47 converts to 24.99px. The text bounding-box for each row is 20px. I don't know how thats calculated. I thought like 17 + (24.99 - 17) / 2 but that results in 20.995 โ€“ does it round down? Never the less โ€“ the gradient underline background is positioned at 0 1.25em which results in 0 21.25px. Since thats outside the text bounding box of 20px the underline doesn't render. 0 1.17em is the first value that goes below 20px (19.89px) and makes the underline visible.

Fix the casing issue on tag pages.

Tags like CSS and HTML that want to be uppercase cause problems. The URLs for them should be lowercase but they should appear as authored in all other situations. Currently the tag index pages are not finding their posts.

Consider some updates to deploying-es2015-code-in-production-today.md

When I revisited the "Deploying ES2015+ Code in Production Today" article, I was surprised to see it had been updated (inline) to change main.js to main.mjs.

Given that this article has been linked from many sites as "the resource" for how to deploy ES2015+ code (e.g. here), I would suggest explicitly noting that the article has been updated and that the original version of the post didn't use the .mjs convention.

Additionally, .mjs still has some caveats: it requires you to explicitly set the correct Content-Type (because it won't happen automatically, like it does for .js, on many popular web servers) and it doesn't generate sourcemaps in webpack (webpack/webpack#7927). Beginners that come to the post are likely to get tripped up by these issues, and they would have avoided them if they read the original version of the post instead. So, I would also suggest clearly calling these issues out. You could perhaps link out to "A note on file extensions" and that webpack issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.