Time on Task Data Sheet & Student Self-Monitoring Checklist Bundle

Description

A time on task data sheet can show how often a student remains engaged, but teacher-collected data alone does not teach the student to recognize and manage their own attention. This bundle combines a teacher observation form with an on-task self-monitoring checklist, allowing educators to collect objective information while helping students build awareness, responsibility, and greater independence.

The Time on Task Data Sheet & On-Task Self-Monitoring Checklist Bundle gives you two connected tools for addressing attention and engagement. Teachers can document observable behavior, calculate the percentage of intervals in which the student was on task, and compare performance over time. Students can reflect on their focus across activities, identify distractions, and consider what may help them remain engaged.

Connect Behavior Data With Student Self-Monitoring

Students described as distracted or off task may struggle for different reasons. A student might have difficulty sustaining attention, beginning challenging work, returning after a distraction, recognizing when attention has shifted, or using strategies independently.

This bundle helps you examine on-task behavior from two perspectives:

  • The teacher records objective, interval-based data.
  • The student reflects on their attention during daily activities.
  • The teacher and student can compare their observations.
  • Patterns can be used to guide interventions and goal setting.
  • Repeated data can show whether support is improving engagement over time.

The purpose is not simply to tell a student to focus. These tools help educators identify patterns while teaching the student to notice and manage their own behavior more independently.

Time on Task Observation Form

The teacher-completed time on task observation form provides a structured way to collect data during classroom instruction, independent work, small groups, or intervention periods. Teachers observe the student at established intervals and record whether the student is on task.

The form includes:

  • Interval-based observation and data collection
  • Options for 1-minute, 5-minute, or customized intervals
  • Space to collect student and peer-comparison data
  • Simple calculations for determining on-task percentages
  • Printable formats for classroom observations
  • A consistent structure for comparing results across observations

Peer-comparison data can help teams interpret the student’s behavior within the context of the classroom activity. If several students are off task during the same lesson, the concern may involve the task, environment, or instruction rather than an individual student skill alone.

On-Task Self-Monitoring Checklist

The student tool helps learners reflect on how consistently they remained engaged during different parts of the day. Instead of relying only on adult correction, students practice recognizing when they were focused, somewhat distracted, or frequently off task.

The checklist encourages students to consider:

  • How well they stayed on task during each activity
  • What helped them focus
  • What distracted them
  • What they could try differently the next day
  • How their own observations compare with teacher feedback

Two versions are included so teachers can choose the format that best matches the student’s schedule:

  • A six-activity version for shorter schedules
  • A seven-activity version for full-day tracking

The checklist is available in printable PDF and digital editable formats.

Use the Tools Together or Separately

The two resources can be introduced separately or used as one coordinated system. A teacher may begin by collecting baseline data before introducing student self-monitoring. Once the student understands what on-task behavior looks like, the student can begin completing the checklist while the teacher continues periodic observations.

Teachers can then compare the information to determine whether the student:

  • Accurately recognizes their own level of engagement
  • Needs clearer examples of on-task and off-task behavior
  • Is improving with a specific intervention
  • Remains focused more successfully during certain activities
  • Needs different support during particular subjects or times of day
  • Is ready to monitor their behavior with less adult assistance

Differences between teacher and student ratings are not automatically a problem. They can provide useful information about the student’s current level of self-awareness and create a starting point for instruction.

Support Behavior Progress Monitoring

These tools can be used to establish baseline information, document progress, and evaluate whether an intervention is helping. Teachers can repeat observations under similar conditions and review completed self-monitoring checklists to identify changes over time.

The bundle may support:

  • IEP goals related to attention and engagement
  • Behavior Intervention Plans
  • Functional Behavior Assessments
  • MTSS and RTI interventions
  • Classroom behavior support
  • Student goal setting
  • Team and family communication
  • Progress-monitoring discussions

For meaningful comparisons, keep the observation period, interval length, activity, and definition of on-task behavior as consistent as possible. If those conditions change, document the difference when interpreting the results.

Define On-Task Behavior Clearly

Before using either tool, explain exactly what on-task behavior looks like during the selected activity. The definition should be observable and specific to the situation.

Depending on the task, on-task behavior might include:

  • Looking at the teacher or instructional materials
  • Writing, reading, or completing the assigned task
  • Participating appropriately in a discussion
  • Using materials connected to the activity
  • Asking for help when needed
  • Returning to work after a brief distraction
  • Following the expected steps of an independent assignment

Clear expectations make teacher data more consistent and help students evaluate their own behavior more accurately.

What’s Included in the Time on Task Data Sheet & On-Task Self-Monitoring Checklist Bundle

  • Time on task data collection form
  • Interval-based student observation
  • Student and peer-comparison sections
  • Options for 1-minute, 5-minute, or customized observation intervals
  • On-task percentage calculations
  • Six-activity student self-monitoring checklist
  • Seven-activity student self-monitoring checklist
  • Student reflection prompts
  • Optional teacher-notes section
  • Printable PDF formats
  • Digital editable self-monitoring format

Ideal For

  • General education teachers
  • Special education teachers
  • Behavior specialists
  • School psychologists
  • Interventionists
  • MTSS and student-support teams
  • Students working on attention, engagement, or self-regulation
  • Individual behavior and academic interventions

Use this bundle when you need more than repeated reminders to focus. The combination of objective observation and student reflection can help you understand what is happening, select appropriate support, and gradually teach students to recognize and manage their own on-task behavior.

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(); })();