background preloader


Facebook Twitter

Website Performance Optimization Testing Course - Udacity. Overview Throughout the course, you’ll build a performance toolbox to help you build faster website experiences by taking advantage of PageSpeed Insights recommendations and measuring page performance on mobile and desktop with Chrome Developer Tools. This class contains an introductory lesson, two primary lessons and a final project. Before diving into optimizations, you’ll build an understanding of how browsers convert HTML, CSS and JavaScript into websites. Along the way, you’ll practice measuring performance using the same tools Google engineers use. Then comes the really fun part: optimization! You’ll put your newfound performance skillset to the test with the final project, where you’ll be optimizing your own online portfolio website!

Lesson 0 (20 minutes) You can’t optimize what you can’t measure, so in this lesson you’ll learn how to open Chrome Developer Tools to measure the performance of mobile and desktop websites. Lesson 1 (60 minutes) Lesson 2 (90 minutes) Code.tutsplus. In this tutorial, we'll learn how to create a slick email signup form. This form will harness the full power of AJAX, meaning that we will submit data to the server, validate it, and receive a response - all without a single page refresh! Along the way, you should pick up some useful tips related to PHP and JavaScript, as well as general programming best practices. Step 1: The Plan So, we want to create an email signup form, but not just any signup form: we want to create a super-responsive, AJAX-powered email signup form. To accomplish all this hocus pocus, we'll need to use some pretty cool web technologies.

JavaScript - Submit data to the server and parse messages received from the server. So we know how we want it to work, and we know what technologies we want to use: it's time to get started! Step 2: Setting Up the MySQL Database Ok, first things first: we need to set up our database. Step 3: Setting up the HTML So here's our form in all its glory. That's better. Step 4: The Glue. Sticky Navigation Bar with jQuery and Bootstrap. How to Create a Fixed Navigation Bar. By Jacob Gube A fixed navigation bar, also referred to as a "sticky" navigation bar, is a toolbar that stays in place while the user is scrolling the web page. It’s a commonly-used site navigation design pattern for displaying a site’s main navigation menu, as well as other essential interface components such as a search box, social media buttons, and notifications.

The design pattern guarantees that important interface components are easily viewable and accessible regardless of where the user currently is on a web page. In this tutorial, I’ll walk you through a simple CSS technique for implementing a top horizontal fixed navigation bar. Examples Before we get started with the tutorial, it’s probably best if we look at some sites that have fixed navigation bars, just to make sure we’re on the same page, and to show you practical applications of the design pattern. Below are some examples of actual sites.

Creating a Fixed Navigation Bar View Demo Download Source from GitHub View GitHub Repository. Ajax, call jQuery POST to node.js expressjs. Nth loop blog | Easy local development with a node.js proxy. Single page apps & websites-as-APIs are pretty common lately. Due to browsers’ cross-domain security restrictions, designing a front-end on a local machine becomes difficult, unless you deploy the whole app. We’ve encountered this problem often-enough that I have a ready-made solution: creating a local proxy server that serves my static files as-is, and transparently forwards requests for API calls to the deployed app server. This solution works best when the API and the front-end are to be deployed on the same domain, with all API methods having a URL-prefix — something like /api/*. You will need: a working node.js installationnpm configured and running properly Create a folder-structure like this: .|-- package.json |-- public| `-- index.html `-- server.js The public dir will contain your HTMLs, CSS and JS files.

And the server.js file looks like this: To run, just run these commands from your project’s directory: $ npm install -d $ node server.js You can download the files from this Gist. Handle GET and POST Request in Express 4. As per the documentation GET request are meant to fetch data from specified resource and POST are meant to submit data to a specified resource. Express allows you to handle GET and POST request using the instance of express. Due to the depreciation of connect middle-ware handling POST request however seems confusing to many people.

GET request: Handling GET request in Express seems so easy. You have to create instance of express and call get method. Here is small snippet to demonstrate that. var express = require("express");var app = express(); app.get('handle',function(request,response){//code to perform particular action. GET request can be cached and remains in browser history. POST Request: Express version 4 and above requires extra middle-ware layer to handle POST request. You can install bodyParser by two way. Sudo npm install --save body-parser You have to import this package in your project and tell Express to use this as middle-ware. Demo App : Login System package.json server.js. Handling AJAX calls with Node.js and Express (scraping Craigslist) - Michael Herman. This tutorial is meant for someone who's finished a basic Hello World project with Node and Express and ready to take another step. In short, I'll show you how to search/scrape/crawl Craigslist using AJAX along with Node and Express.

I assume you're working from a Unix-based environment, already have Node and Express installed, and understand how to navigate the terminal. You can find the finished code on this repo if wish to bypass the tutorial altogether. Let's get right to it. Here is an index of all the articles in the series that have been published to date: Project Setup Navigate to where you'd like your project to reside, then run the following command: CD into the newly created directory and install the node modules: Aside for the installed node modules/dependencies, your project structure should look like this: In short, your server-side Javascript is held in the app.js file, while the client-side file(s) will be placed in the "javascripts" directory.

Still with me? Workflow Ready? Translating's postalAddress microdata into useful links for mobile. In my previous post I wrote about the URL structures required to open map apps on mobile devices. Unfortunately there is no standard way to open these apps and a different URL structure is required for each of the popular mobile platforms: iOS, Android, WP7 and Blackberry. What I did not cover previously and the focus of this article, is how to implement this on your website. Ultimately, our goal is to make our markup more functional. To do that we need to give it structure so our code can find and extract the data we need. We could create our own structure but instead let's look at some which already exists and will give our markup even more meaning. is a project put together by Google, Microsoft and Yahoo which defines "structured data markup schema" for a variety of different data types including the one we'll look at today, PostalAddress.

Ideally, browser developers will eventually come together with a unified method we can use to launch map applications from our markup. Opening native map apps from the mobile browser. As mobile devices grow in popularity towards being the most common way people access the web, so does the desire of both business owners and developers to leverage the devices' new capabilities.

Often this comes in the form of an application, but with the advent of responsive design and improved mobile browsing it is taking place with increasing frequency in the browser. One of the most obvious and useful features to employ in the mobile context is location finding. All the most popular mobile platforms have the ability to determine their location, often to within a few meters. This can be useful in many ways, but let's look at a relatively simple use, getting from where you are to where you want to be. Picture this. You are downtown waiting for your friend to finish work, sitting in a small cafe, surfing the web. You just landed on the website for a great new store and you want to check out. The answer is yes. So, how do we make this work? URL Structure <a href=" How to: Launch a Map App from a Mobile Form : ProntoForms Support. JavaScript - Cube Portfolio - Responsive jQuery Grid Plugin | CodeCanyon.

Latest Version 2.2.0 – 19 April, 2015 Cube Portfolio is a jQuery grid plugin that provides powerfull portfolio system, beautiful animated filtering, custom captions and it’s perfect for portfolio projects, horizontal slider, images gallery, team members, blog posts or any other ordered grid content. It plays nice with your existing HTML and CSS, making it a great choice for dynamic and responsive grid layouts. You can customize the plugin with just a little HTML and CSS to fulfill your needs. Cube Portfolio include more than 30 settings to control every aspect of the plugin.

What customers say For anyone interested in this, buy it. Absolutely love how it looks and works! Ohh my God, it’s really realy much awesome !!! Ok, now everything is working fine Thaks to bmihai for his help and patience)) BetaPsycho Thank you for your quick replies to my emails. Awesome plugin and really great work you have done VossenDesign The amount of time spent on the details of this plugin is astonishing. Cascading Pins - Examples - ScrollMagic. ScrollMagic Documentation. The javascript library for magical scroll interactions.

ScrollMagic helps you to easily react to the user's current scroll position.It's the perfect library for you, if you want to ... animate based on scroll position – either trigger an animation or synchronize it to the scrollbar movement (like a playback scrub control).pin an element starting at a specific scroll position – either indefinitely or for a limited amount of scroll progress (sticky elements).toggle CSS classes of elements on and off based on scroll position.effortlessly add parallax effects to your website.create an infinitely scrolling page (ajax load of additional content).add callbacks at specific scroll positions or while scrolling past a specific section, passing a progress parameter. Check out the demo page, browse the examples or read the documentation to get started. About the Library ScrollMagic is a scroll interaction library. To implement animations, ScrollMagic can work with multiple frameworks.

Availability Usage. Getting Started : Using AMD · janpaepke/ScrollMagic Wiki. Auto-Hide Sticky Header with JavaScript & CSS3. Untitled. Full-Screen Pushing Navigation | CodyHouse. Product Quick View.