Disruptive Behavior in the Classroom: Self-Monitoring Checklist & Classroom Behavior Tracker

SKU 13214241 Category

Description

Disruptive behavior in the classroom can continue even after expectations have been taught and reminders have been given. Some students do not consistently recognize when their actions are distracting classmates, interrupting learning, or requiring repeated adult redirection. This self-monitoring checklist and classroom behavior tracker helps students examine their behavior across the school day, reflect on patterns, and choose a realistic goal for improvement.

Students use a simple three-level smiley-face scale to rate how well they respected others’ learning during six or seven classes, activities, or time periods. Teachers can review the completed tracker with the student, compare the student’s ratings with their own observations, and discuss what may help the student participate more successfully.

Help Students Recognize Disruptive Behavior in the Classroom

“Stop disrupting the class” may be clear to an adult, but it does not always help a student recognize the specific behavior that needs to change. Classroom disruptions may include making noises, involving classmates in off-task behavior, moving around at inappropriate times, playing with materials, interrupting instruction, or repeatedly drawing attention away from an activity.

Before using the checklist, clearly define what respecting others’ learning looks like for the student. Expectations might include:

  • Using materials appropriately
  • Keeping noises at an appropriate level
  • Remaining in the expected area
  • Waiting for an appropriate time to interact with classmates
  • Following the activity without distracting others
  • Responding to a reminder and returning to the expected behavior

The goal is not to label the student as disruptive. It is to help the student identify observable actions, understand how those actions affect the classroom, and practice making a different choice.

Classroom Behavior Tracker for Student Self-Monitoring

Students rate their behavior during each activity or time period using three options:

  • Stayed focused
  • Needed a few reminders
  • Often distracted others

These quick ratings can help students notice whether disruptions are more likely during certain subjects, groupings, activities, or times of day. A student may have difficulty during independent work but respond successfully during small-group instruction. Another may do well early in the day but need more support during transitions or less-structured activities.

The completed classroom behavior tracker gives the teacher and student a concrete place to begin the conversation. It does not replace teacher observation or formal behavior data, but it provides useful student-reported information that can be considered alongside adult observations.

Use Student Behavior Self-Assessment to Build Awareness

Students cannot independently change behavior they do not yet recognize. This student behavior self-assessment asks students to pause, consider their actions, and identify how much adult support they needed.

At the end of the day, students reflect on:

  • What helped them stay focused
  • What they can do differently tomorrow

An optional teacher-notes section provides space for feedback, observations, or follow-up information. Teachers can use this section to acknowledge progress, clarify differences between the student’s rating and the teacher’s observation, or identify a strategy to practice the next day.

Move Beyond Repeated Redirection

Repeated reminders may stop a disruption briefly without helping the student understand the pattern. Self-monitoring shifts part of the process from adult correction to student awareness.

During a brief review, the teacher can help the student consider:

  • When it was easiest to respect others’ learning
  • When reminders were needed
  • What was happening before a disruption
  • Which strategy helped the student return to the activity
  • What one attainable goal could be used the next day

A goal might focus on keeping materials in the assigned area, using an appropriate voice, returning to work after one reminder, or waiting until an appropriate time to interact with a classmate.

When a Disruptive Behavior Checklist May Help

This resource may be useful for students who:

  • Frequently distract classmates
  • Need repeated reminders during instruction or independent work
  • Struggle to recognize how their actions affect others
  • Demonstrate impulsive classroom behavior
  • Can follow expectations but need help doing so more consistently
  • Are learning to reflect on and monitor their own behavior
  • Have classroom-behavior goals included in an IEP, 504 Plan, MTSS plan, BIP, or other support plan

Self-monitoring works best when the student understands the expectation and can demonstrate the skill with support. If the student does not yet know what to do instead, the replacement behavior should be explicitly taught, modeled, practiced, and reinforced. The checklist is a tool for building awareness and independence—not a substitute for instruction or an appropriate individualized intervention.

Use for Behavior Support and Progress Discussions

This classroom behavior checklist can be used during:

  • IEP or 504 Plan support
  • MTSS or RTI interventions
  • Behavior intervention plans
  • Check-in/check-out routines
  • Counseling or behavior-support sessions
  • Teacher-student conferences
  • Individual reflection and goal setting
  • Informal progress reviews
  • Home-school communication

The tracker can be completed independently or reviewed with a teacher, counselor, paraprofessional, case manager, or other support person.

Printable and Digital Classroom Behavior Checklist

Two versions are included so teachers can select the format that fits the student’s schedule:

  • Six-activity or time-period tracker
  • Seven-activity or time-period tracker

Print the checklist for students to complete by hand, or use the digital PDF with type-in fields for the activity or time-period labels.

Please note: The digital version includes editable activity or time-period fields. The directions, rating categories, reflection questions, graphics, colors, and overall layout are not customizable.

What’s Included in the Disruptive Behavior in the Classroom Checklist

  • Six-activity or time-period classroom behavior tracker
  • Seven-activity or time-period classroom behavior tracker
  • Three-level smiley-face self-monitoring scale
  • Daily student-reflection questions
  • Student goal-setting prompt
  • Optional teacher-notes section
  • Printable PDF
  • Digital PDF with editable activity or time-period fields

This disruptive behavior checklist gives students a structured way to recognize patterns, consider how their actions affect other people, and take a more active role in working toward respectful classroom behavior.

Need More Self-Monitoring Checklists?

This checklist is also included in the Student Self-Monitoring Checklists Bundle, which includes 10 checklists for different classroom skills and behaviors.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

.elementor-element-9643cc1:has(#product-bundle-guide) { display: none; } .elementor-element-6e3bdc7e .elementor-widget-container .related > h2, .elementor-element-6e3bdc7e .related > .product-bundle-options > h2 { font-family: 'Open Sans', sans-serif !important; font-size: clamp(1.375rem, 2.1vw, 1.75rem) !important; font-weight: 700 !important; line-height: 1.3; } .related .product-bundle-options h3 { font-weight: 600; } .related .product-bundle-options .bundle-card-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); gap: 0.75rem; align-items: stretch; padding: 0; } .related .bundle-card-grid li { margin: 0; } .related .bundle-card-grid a { display: flex; flex-direction: column; height: 100%; gap: 0.45rem; padding: 0.5rem; border: 1px solid #dce9e9; border-radius: 7px; background: #fff; color: #00536b; line-height: 1.3; text-decoration: none; } .related .bundle-card-grid a:hover, .related .bundle-card-grid a:focus-visible { border-color: #087879; } .related .bundle-card-grid img { display: block; width: 100%; max-width: 220px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; align-self: center; } .related .bundle-card-grid .bundle-card-name { text-decoration: none; } .related .bundle-card-grid .bundle-card-price { margin-top: auto; font-size: 0.9rem; } .elementor-element-6e3bdc7e .related > .product-bundle-options { margin: 0 0 2.25rem; padding: 0; border: 0; background: transparent; box-shadow: none; } .elementor-element-6e3bdc7e .related > .product-bundle-options > h2 { margin: 0 0 1rem; } .elementor-element-6e3bdc7e .related > h2::after, .elementor-element-6e3bdc7e .related > .product-bundle-options > h2::after { content: ''; display: block; width: 2rem; height: 3px; margin-top: 0.4rem; border-radius: 2px; background-color: #36adab; } body.single-product :is(#tab-description, .woocommerce-product-details__short-description) p { margin-block-end: 0.85em; } body.single-product :is(#tab-description, .woocommerce-product-details__short-description) :is(ul, ol) + p { margin-block-start: 0.85em; } .elementor-element-6e3bdc7e .related ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; line-height: 1.3; } (() => { const products = {"18294":[21276],"18299":[21276],"18301":[21276],"18302":[21276],"18305":[23979,21282],"18306":[23979,21282],"18308":[23979,21393,21282],"18309":[23979,21393,21282],"18311":[23981,21282],"18312":[23982,21282],"18332":[23982,21393,21282],"18333":[23982,21282],"18334":[23981,21282],"18335":[23979,21282],"18336":[23981,21282],"18337":[23981,21282],"18338":[23981,21393,21282],"18339":[23982,21393,21282],"18416":[21377,21283],"18418":[21364,21283],"18420":[21391,21283],"18422":[23787,21283],"18424":[21366,21283],"18426":[21390,21283],"18428":[21368,21283],"18430":[23788,21283],"18432":[23785,21283],"18434":[23784,21283],"18436":[21379,21283],"18438":[21363,21283],"18440":[21365,21283],"18442":[21369,21283],"18444":[21372,21283],"18446":[21373,21283],"18448":[21370,21283],"18452":[21385,21283],"18454":[21386,21283],"18456":[21384,21283],"18458":[21371,21283],"18460":[21388,21283],"18462":[21387,21283],"18466":[21382,21283],"18470":[21381,21283],"18472":[21383,21283],"18474":[21375,21283],"18476":[21389,21283],"18480":[21374,21283],"18482":[21367,21283],"18484":[23786,21283],"18486":[21380,21283],"18488":[21378,21283],"18490":[21376,21283],"18492":[21392,21283],"18494":[21565],"18536":[21565],"18537":[21565],"18538":[21565],"18539":[21565],"18540":[21565],"18541":[21565],"18542":[21565],"18630":[21565],"18631":[21565],"18632":[21565],"18633":[21565],"18634":[21565],"18635":[21565],"18636":[21565],"18637":[21565],"18638":[21565],"18639":[21565],"18640":[21565],"18641":[21565],"18642":[21565],"18643":[21565],"18644":[21565],"18645":[21565],"18646":[21565],"18647":[21565],"18648":[21565],"18649":[21565],"18650":[21565],"18651":[21565],"18652":[21565],"18653":[21565],"18654":[21565],"18655":[21565],"18656":[21551],"21245":[21313,21316,21317],"21275":[21276],"21279":[21364,21289],"21280":[23788,21289],"21281":[23785,21289],"21284":[23784,21289],"21285":[21377,21289],"21286":[21366,21289],"21287":[21368,21289],"21288":[21379,21289],"21290":[21363,21314],"21291":[21364,21314],"21292":[21365,21314],"21293":[21366,21314],"21294":[21368,21314],"21295":[21369,21314],"21296":[21370,21314],"21297":[23784,21314],"21298":[21372,21314],"21299":[23788,21314],"21300":[21373,21314],"21301":[21374,21314],"21302":[23786,21314],"21303":[21376,21314],"21304":[21377,21314],"21305":[21378,21314],"21306":[21379,21314],"21307":[23785,21314],"21308":[21380,21314],"21310":[21313,21316,21317],"21311":[21313,21316,21317],"21312":[21313,21316,21317],"21318":[21367,21314],"21319":[21371,21314],"21320":[21375,21314],"21321":[21392,21314],"21322":[21381,21314],"21323":[21382,21314],"21324":[21383,21314],"21325":[21384,21314],"21326":[21385,21314],"21327":[21386,21314],"21328":[21387,21314],"21329":[21388,21314],"21330":[21389,21314],"21332":[21390,21314],"21333":[23787,21314],"21334":[21391,21314],"21336":[21369,21289],"21337":[21370,21289],"21338":[21372,21289],"21339":[21371,21289],"21340":[21367,21289],"21341":[21365,21289],"21342":[21363,21289],"21343":[21373,21289],"21344":[21374,21289],"21345":[23786,21289],"21346":[21375,21289],"21347":[21376,21289],"21348":[21384,21289],"21349":[21378,21289],"21350":[21390,21289],"21351":[23787,21289],"21352":[21391,21289],"21353":[21380,21289],"21354":[21392,21289],"21355":[21381,21289],"21356":[21382,21289],"21357":[21383,21289],"21358":[21385,21289],"21359":[21386,21289],"21360":[21387,21289],"21361":[21388,21289],"21362":[21389,21289],"21401":[23981,21393,21282],"21402":[23981,21282],"21406":[21412],"21407":[21412],"21408":[21412],"21409":[21412],"21410":[21412],"21411":[21412],"21413":[21423,21426],"21414":[21423,21426],"21415":[21423,21426],"21416":[21424,21426],"21417":[21424,21426],"21418":[21424,21426],"21419":[21425,21426],"21420":[21425,21426],"21421":[21425,21426],"21422":[21425,21426],"21423":[21426],"21424":[21426],"21425":[21426],"21427":[21363],"21428":[21364],"21429":[21365],"21430":[21366],"21431":[21367],"21432":[21368],"21433":[21369],"21434":[21370],"21435":[23784],"21436":[21371],"21437":[21372],"21438":[23788],"21439":[21373],"21440":[21374],"21441":[23786],"21442":[21375],"21443":[21376],"21444":[21377],"21445":[21378],"21446":[21379],"21447":[23785],"21448":[21380],"21449":[21392],"21450":[21381],"21451":[21382],"21452":[21383],"21453":[21384],"21454":[21385],"21455":[21386],"21456":[21387],"21457":[21388],"21458":[21389],"21459":[21390],"21460":[23787],"21461":[21391],"21481":[23981,21282],"21482":[21569],"21491":[23982,21282],"21492":[21551],"21493":[21551],"21494":[21551],"21495":[21551],"21496":[21551],"21497":[21551],"21498":[21551],"21499":[21551],"21500":[21551],"21501":[21551],"21502":[21551],"21503":[21551],"21506":[22803],"21507":[22803],"21508":[22803],"21509":[22803],"21510":[22803],"21511":[22803],"21512":[22803],"21513":[22803],"21514":[22803],"21515":[22803],"21516":[22803],"21517":[22803],"21519":[21566,21568],"21520":[21566,21568],"21521":[21567,21568],"21522":[21567,21568],"21523":[21533],"21524":[21533],"21525":[21533],"21526":[21533],"21527":[21533,21569],"21528":[21533],"21529":[21533],"21530":[21533],"21531":[21533],"21532":[21533],"21536":[22803],"21552":[21563],"21553":[21563],"21554":[21563],"21555":[21563],"21556":[21563],"21557":[21563],"21558":[21563],"21559":[21563],"21560":[21563],"21561":[21563],"21562":[21563],"21566":[21568],"21567":[21568]}; const bundles = {"21276":["/product/iep-behavior-progress-monitoring-bundle/","IEP Behavior Progress Monitoring Bundle"],"21282":["/product/sel-read-aloud-activities-bundle/","Full SEL Read-Aloud Activities Bundle"],"21283":["/product/token-boards-with-visuals-bundle/","Token Boards with Visuals Bundle"],"21289":["/product/student-behavior-point-sheets-bundle/","Student Behavior Point Sheets Bundle"],"21313":["/product/fba-forms-bundle/","FBA Forms Bundle"],"21314":["/product/daily-reward-charts-bundle/","35 Themed Daily Reward Charts Bundle"],"21316":["/product/fba-and-bip-bundle/","FBA & BIP Bundle"],"21317":["/product/fba-bip-progress-monitoring-bundle/","FBA, BIP & Progress Monitoring Bundle"],"21363":["/product/airplanes-behavior-support-toolkit/","Airplanes Behavior Support Toolkit"],"21364":["/product/aliens-behavior-support-toolkit/","Aliens Behavior Support Toolkit"],"21365":["/product/astronaut-behavior-support-toolkit/","Astronaut Behavior Support Toolkit"],"21366":["/product/autumn-behavior-support-toolkit/","Autumn Behavior Support Toolkit"],"21367":["/product/baseball-behavior-support-toolkit/","Baseball Behavior Support Toolkit"],"21368":["/product/basketball-behavior-support-toolkit/","Basketball Behavior Support Toolkit"],"21369":["/product/beach-behavior-support-toolkit/","Beach Behavior Support Toolkit"],"21370":["/product/birds-behavior-support-toolkit/","Birds Behavior Support Toolkit"],"21371":["/product/cinderella-behavior-support-toolkit/","Cinderella Behavior Support Toolkit"],"21372":["/product/construction-behavior-support-toolkit/","Construction Behavior Support Toolkit"],"21373":["/product/dino-babies-behavior-support-toolkit/","Dino Babies Behavior Support Toolkit"],"21374":["/product/dinosaur-behavior-support-toolkit/","Dinosaur Behavior Support Toolkit"],"21375":["/product/farm-behavior-support-toolkit/","Farm Behavior Support Toolkit"],"21376":["/product/flowers-behavior-support-toolkit/","Flowers Behavior Support Toolkit"],"21377":["/product/football-behavior-support-toolkit/","Football Behavior Support Toolkit"],"21378":["/product/frogs-behavior-support-toolkit/","Frogs Behavior Support Toolkit"],"21379":["/product/gamer-behavior-support-toolkit/","Gamer Behavior Support Toolkit"],"21380":["/product/valentines-day-behavior-support-toolkit/","Valentines Day Behavior Support Toolkit"],"21381":["/product/jungle-behavior-support-toolkit/","Jungle Behavior Support Toolkit"],"21382":["/product/kittens-behavior-support-toolkit/","Kittens Behavior Support Toolkit"],"21383":["/product/brick-building-behavior-support-toolkit/","Brick Building Behavior Support Toolkit"],"21384":["/product/mermaids-behavior-support-toolkit/","Mermaids Behavior Support Toolkit"],"21385":["/product/sleeping-princess-behavior-support-toolkit/","Sleeping Princess Behavior Support Toolkit"],"21386":["/product/bayou-princess-behavior-support-toolkit/","Bayou Princess Behavior Support Toolkit"],"21387":["/product/puppies-behavior-support-toolkit/","Puppies Behavior Support Toolkit"],"21388":["/product/rapunzel-behavior-support-toolkit/","Rapunzel Behavior Support Toolkit"],"21389":["/product/singers-behavior-support-toolkit/","Singers Behavior Support Toolkit"],"21390":["/product/superheroes-behavior-support-toolkit/","Superheroes Behavior Support Toolkit"],"21391":["/product/unicorns-behavior-support-toolkit/","Unicorns Behavior Support Toolkit"],"21392":["/product/hockey-behavior-support-toolkit/","Hockey Behavior Support Toolkit"],"21393":["/product/my-dragon-sel-read-alouds-bundle/","My Dragon SEL Read-Alouds Bundle"],"21412":["/product/dolch-sight-words-flash-cards/","Complete Dolch Sight Words Bundle"],"21423":["/product/fry-first-300-sight-words/","Fry First 300 Sight Words Bundle"],"21424":["/product/fry-fourth-sixth-100-sight-words-flash-cards/","Fry Fourth–Sixth 100 Sight Words Bundle"],"21425":["/product/fry-seventh-tenth-100-sight-words-flash-cards/","Fry Seventh–Tenth 100 Sight Words Bundle"],"21426":["/product/fry-sight-words-flash-cards/","Complete Fry 1,000 Sight Words Bundle"],"21533":["/product/student-self-monitoring-checklists-bundle/","Student Self-Monitoring Checklists Bundle"],"21551":["/product/traffic-light-behavior-chart-bundle/","Traffic Light Behavior Chart Bundle"],"21563":["/product/would-you-rather-questions-for-students/","Would You Rather & Write the Room Bundle"],"21565":["/product/smiley-face-behavior-chart-bundle/","Smiley Face Behavior Chart Bundle"],"21566":["/product/k-5th-grade-functional-life-skills-checklist/","K–5 Functional Life Skills Checklist Bundle"],"21567":["/product/6th-12th-grade-functional-life-skills-checklist/","Grades 6–12 Functional Life Skills Checklist Bundle"],"21568":["/product/k-12th-grade-functional-life-skills-checklist/","K–12 Functional Life Skills Checklist Bundle"],"21569":["/product/time-on-task-data-sheet/","Time on Task Observation & Self-Monitoring Bundle"],"22803":["/product/behavior-reflection-sheets/","Complete Think Sheet Collection"],"23784":["/product/christmas-behavior-support-toolkit/","Christmas Behavior Support Toolkit"],"23785":["/product/halloween-behavior-support-toolkit/","Halloween Behavior Support Toolkit"],"23786":["/product/easter-behavior-support-toolkit/","Easter Behavior Support Toolkit"],"23787":["/product/thanksgiving-behavior-support-toolkit/","Thanksgiving Behavior Support Toolkit"],"23788":["/product/dia-de-los-muertos-behavior-support-toolkit/","Día de los Muertos Behavior Support Toolkit"],"23979":["/product/emotional-regulation-read-aloud-bundle/","Emotional Regulation Read-Aloud Bundle"],"23981":["/product/social-skills-read-aloud-bundle/","Social Skills Read-Aloud Bundle"],"23982":["/product/growth-mindset-read-aloud-bundle/","Growth Mindset Read-Aloud Bundle"]}; async function addBundleImagesAndPrices(list, options) { const query = new URLSearchParams({ include: options.join(','), per_page: String(options.length), _fields: 'id,images,prices' }); const response = await fetch('/wp-json/wc/store/v1/products?' + query); if (!response.ok) return; const items = await response.json(); if (!Array.isArray(items)) return; const byId = new Map(items.map(item => [Number(item.id), item])); const cards = [...list.querySelectorAll('a')]; for (const [index, option] of options.entries()) { const item = byId.get(Number(option)); const link = cards[index]; if (!item || !link) continue; const cover = item.images?.[0]; const name = document.createElement('span'); name.className = 'bundle-card-name'; name.textContent = link.textContent; link.replaceChildren(name); if (cover?.thumbnail || cover?.src) { const image = document.createElement('img'); image.src = cover.thumbnail || cover.src; image.alt = ''; image.width = image.height = 300; image.loading = 'lazy'; image.decoding = 'async'; link.prepend(image); } const prices = item.prices; if (prices?.price != null && prices.price !== '') { const formatted = new Intl.NumberFormat(document.documentElement.lang || 'en-US', { style: 'currency', currency: prices.currency_code }).format(Number(prices.price) / 10 ** prices.currency_minor_unit); const price = document.createElement('span'); price.className = 'bundle-card-price'; price.textContent = formatted; link.append(price); } } if (list.querySelector('.bundle-card-name')) list.classList.add('bundle-card-grid'); } function showBundleOptions() { if (!document.body.classList.contains('single-product')) return; const id = document.body.className.match(/\bpostid-(\d+)\b/)?.[1]; const options = products[id]; if (!options || document.querySelector('.product-bundle-options')) return; const related = document.querySelector('.elementor-element-6e3bdc7e .related'); const description = document.querySelector('#tab-description'); const title = document.querySelector('.elementor-element-79ab709 h1'); const box = document.createElement('div'); box.className = 'product-bundle-options'; const heading = document.createElement('h3'); heading.textContent = 'Also available in a bundle'; if (options.length > 1) heading.textContent = 'Also available in these bundles'; const list = document.createElement('ul'); for (const option of options) { const [url, label] = bundles[option]; const item = document.createElement('li'); const link = document.createElement('a'); link.href = url; link.textContent = label; item.append(link); list.append(item); } box.append(heading, list); const relatedHeading = related?.querySelector(':scope > h2'); const firstParagraph = description?.querySelector(':scope > p'); if (firstParagraph) firstParagraph.after(relatedHeading ? box.cloneNode(true) : box); else title?.after(relatedHeading ? box.cloneNode(true) : box); if (relatedHeading) { const bundleHeading = document.createElement('h2'); bundleHeading.textContent = 'Also Available In'; heading.replaceWith(bundleHeading); relatedHeading.textContent = 'Related Products'; relatedHeading.before(box); addBundleImagesAndPrices(list, options).catch(() => {}); } } async function showSameTypeProducts() { if (!document.body.classList.contains('single-product')) return; const currentId = document.body.className.match(/\bpostid-(\d+)\b/)?.[1]; const grid = document.querySelector('.elementor-element-6e3bdc7e .related > ul.products'); if (!currentId || !grid || Object.hasOwn(bundles, currentId)) return; const themedCategories = [ 'behavior-point-sheets', 'behavior-reward-charts-for-students', 'token-boards-token-economy', 'i-need-a-break-cards', 'smiley-face-behavior-charts', 'traffic-light-behavior-charts' ]; const categoryLinks = [...document.querySelectorAll('.elementor-element-394e597b .posted_in a')]; const categoryUrl = categoryLinks.map(link => new URL(link.href)).find(url => url.origin === location.origin && themedCategories.includes(url.pathname.split('/').filter(Boolean).at(-1)) ); if (!categoryUrl) return; const category = categoryUrl.pathname.split('/').filter(Boolean).at(-1); const response = await fetch(categoryUrl.href); if (!response.ok) return; const archive = new DOMParser().parseFromString(await response.text(), 'text/html'); const candidates = [...archive.querySelectorAll('.elementor-element-5c577e03 ul.products > li.product')]; const matches = candidates.filter(card => { const id = [...card.classList].find(name => /^post-\d+$/.test(name))?.slice(5); return id && id !== currentId && !Object.hasOwn(bundles, id) && card.classList.contains('product_cat-' + category); }).slice(0, 4); if (matches.length { const copy = document.importNode(card, true); copy.classList.remove('first', 'last'); for (const image of copy.querySelectorAll('img')) { image.loading = 'lazy'; if (image.dataset.src && (!image.getAttribute('src') || image.getAttribute('src').startsWith('data:'))) { if (image.dataset.sizes) image.sizes = image.dataset.sizes; if (image.dataset.srcset) image.srcset = image.dataset.srcset; image.src = image.dataset.src; image.classList.remove('lazyload'); } } return copy; }); grid.replaceChildren(...cards); } function showProductRecommendations() { showBundleOptions(); showSameTypeProducts().catch(() => {}); } if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', showProductRecommendations, { once: true }); else showProductRecommendations(); })();