19. CSS and JS best practices, web components

Lesson 19

CSS and JS best practices, web components

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • Use the {% stylesheet %} and {% javascript %} tags the right way.
  • Load a script from assets with defer.
  • Know what a web component is.
  • Build a quantity selector as a web component.
  • Keep your theme code small and simple.

75 minutes Lesson 19 of 25

Everything in Shopify Theme Developer

  • 25 step-by-step lessons
  • 4 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account