- Think about performance at the beginning of every project
- Set a goal and baseline
- Set trip wires to perform audits along the way
- Use memoize
function Badge(props) {};
{% comment %} | |
Start of Cash on Delivery pincode checker snippet | |
Instructions: | |
1. Copy and paste this snippet into the liquid template where you'd like it to be displayed. | |
i.e. product.liquid, cart.liquid etc... | |
2. Set title and messages below (optional). | |
3. Customize success and failure colors (optional). | |
4. Adjust the pixel spacing on line 19 to best match the surroundings of the snippet. | |
This will adjust spacing below the title and input field. |
Brooklyn doesn't have a search box by default and adding one to the header somewhat disrupts the aesthetic of the theme. Instead of adding just an icon linking to the search page, why not adding a modal using the already built in popup plugin?
Did you see that fade in?! It's actually very smooth IRL.
{% if customer and customer.addresses[0].country %} | |
{{ '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' | script_tag }} | |
<style> | |
.js .field--same-billing-address { | |
display: none !important; | |
} | |
#checkout_billing_address_country, #checkout_billing_address_province { |
This one is farily straight forward
{{ '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' | script_tag }}
<script type="text/javascript">
(function(window, undefined) {
var $;
div.contact * {display: inline-block;} | |
@media screen and ($bp-min: $bp-med) { | |
//ul.navprimary__horizontal li:not(.contact){margin-top:21px;} | |
//ul.navprimary__horizontal li{height: 32px;} | |
//ul.navprimary__horizontal li.contact input{border-radius: 2px;} | |
} | |
@media only screen and (max-width: 1326px) { | |
.contact{ display:none; } |