background preloader

Frontend Development

Facebook Twitter

A Quick and Dirty Guide to Post Type Templates in WordPress 4.7. WordPress 4.7 has delivered some fantastic new enhancements to the CMS’s template system.

A Quick and Dirty Guide to Post Type Templates in WordPress 4.7

Templates have now been expanded to include all post types, allowing developers to create more nuanced themes and at the same time allowing site owners to manage content more easily. But how does it all work? In this article, I’ll show you how to use post type templates in your themes with a few easy examples. So What are Templates in WordPress? Templates are essentially special files that can change the look and feel of a page and/or add functionality to your WordPress website. Harmony:specification_drafts. This page contains a historical record of working draft of the ES.next specification prepared by the project editor.

harmony:specification_drafts

Errors in the current draft should be reported as bugs at bugs.ecmascript.org. Report the version you are reading, and an appropriate “component” (editorial issues, technical issues, etc.). Such bug reports are particularly useful for specific bugs such as misspellings or errors in algorithms. An unofficial HTML version of the Edition 6 working draft is usually available at Note that this HTML version may not always be up to date with the current working draft below. For now, all draft found here are snapshots taken of the project editor’s working draft. It is reasonable to assume that the editor is aware of the major inconsistencies or missing material, but you can’t over report. The rationale for design decisions, are not generally part of the specification.

Manage state with Redux, Part 1: Introducing Redux. Get a grip on your JavaScript application state About this seriesApplication state is typically complex.

Manage state with Redux, Part 1: Introducing Redux

Maintaining state, creating it, modifying it, and figuring out why some of it seems to have the wrong value at the moment takes significant work. This series explores the Redux JavaScript library — a predictable state container that makes maintaining state significantly less error prone. State management is one of the most difficult aspects of software development, making state mismanagement the source of nearly all bugs. This series explores Redux, a predictable state container for JavaScript applications. Although Redux came from the React community, it's not tied to React. How Redux works Installing Redux Install Redux by cloning the GitHub repository or via npm: npm install redux Redux is a simplified implementation of Facebook's Flux architecture.

Tutorials. The links on this page lead to a variety of tutorials and training materials.

Tutorials

Whether you are just starting out, learning the basics, or are an old hand at web development, you can find helpful resources here for best practices. These resources are created by forward-thinking companies and web developers who have embraced open standards and best practices for web development and that provide or allow translations, through an open content license such as Creative Commons.

HTML tutorials Introductory level. Using Web Workers - Web APIs. Web Workers provide a simple means for web content to run scripts in background threads.

Using Web Workers - Web APIs

The worker thread can perform tasks without interfering with the user interface. In addition, they can perform I/O using XMLHttpRequest (although the responseXML and channel attributes are always null). Once created, a worker can send messages to the JavaScript code that created it by posting messages to an event handler specified by that code (and vice versa.) Chrome Devs Paint 'Progressive Apps' as Future of Mobile Web. News Chrome Devs Paint 'Progressive Apps' as Future of Mobile Web At this week's Chrome Dev Summit 2015, Google's developers pointed to "progressive Web apps" as the way toward Web development nirvana in which Web apps equal native apps in performance and functionality.

Chrome Devs Paint 'Progressive Apps' as Future of Mobile Web

Google, with definite skin in the game, is leading the Web developers in the Web-vs. -native app debate and provided plenty of fodder to back up their viewpoint. For example, in his keynote presentation, Chrome VP of Engineering Darin Fisher noted that Flipboard saw a 75 percent growth in mobile active users after it launched on the mobile Web. Using data attributes - Web developer guide. HTML Syntax The syntax is simple.

Using data attributes - Web developer guide

Any attribute on any element whose attribute name starts with data- is a data attribute. Tips for authoring fast-loading HTML pages - Web developer guide. These tips are based upon common knowledge and experimentation.

Tips for authoring fast-loading HTML pages - Web developer guide

An optimized web page not only provides for a more responsive site for your visitors, but also reduces the load on your web servers and Internet connection. This can be crucial for high volume sites or sites which have a spike in traffic due to unusual circumstances such as breaking news stories. Optimizing page load performance is not just for content which will be viewed by narrow band dial-up or mobile device visitors. It is just as important for broadband content and can lead to dramatic improvements even for your visitors with the fastest connections. Web Updates - Google Developers.

Clown Car Technique: Solving Adaptive Images In Responsive Web Design. Adaptive images are the current hot topic in conversations about adaptive and responsive Web design.

Clown Car Technique: Solving Adaptive Images In Responsive Web Design

Why? Because no one likes any of the solutions thus far. New elements and attributes are being discussed as a solution for what is, for most of us, a big headache: to provide every user with one image optimized for their display size and resolution, without wasting time, memory or bandwidth with a client-side solution. We have foreground and background images. We have large and small displays. Some people waste bandwidth (and memory) by sending high-resolution images to all devices. What we really want to do is find the holy grail: the one solution that sends the image with the most appropriate size and resolution based on the browser and device making the request that can also be made accessible. We’ve solved adaptive background images. By using media queries with our background image styles, we can ensure that only the images that are needed are downloaded from the server. Why? (al)

How to Make Your Own Button UI Kit with Super-Clean Syntax. Every designer loves buttons.

How to Make Your Own Button UI Kit with Super-Clean Syntax

It’s a fact made known by the appreciation of projects such as Unicorn UI (which at the time of this writing only supports buttons and has almost 4,000 Stargazers on GitHub). But no designer fits in a box. We all have our own wants and needs out of a button framework. We all want to see certain types of buttons, and maybe we’ve become really good at designing a certain type of button. Aquent Gymnasium. Front-end.