91³Ô¹ÏÍø

Watch CBS News

3 things you can do to improve your sleep hygiene

Having trouble with your sleep? It may be time to check in on your sleep hygiene.

Sleep hygiene is all about "best practices you can do every day (and) build into your daily routine to optimize your sleep," explains Dr. Erin Flynn-Evans, a consultant to the .

Sleep hygiene involves several components which can all play a role in how well you sleep.

To improve your sleep hygiene, here are 3 things she suggests keeping in mind:

Sleeping environment: "You want a cool, dark, quiet sleep environment," Flynn-Evans says. "If you live on a noisy street... using white noise would be a really good thing."

If sunlight is coming through your windows too early in the morning, blackout shades are another tool she suggests to "make sure your sleep environment stays as it should from the time you try to go to sleep until the time you wake up."

Bedtime: It may sound like a childish concept, but having a regular bedtime and wake-up time is associated with all kinds of positive health outcomes, Flynn-Evans says.

"In the past, we've thought about sleep as something that requires us to get a certain quantity — and that's certainly true, adults should get seven-plus hours of sleep per night — but the timing of that sleep is really important too," she says. "People who have more regular sleep do better on cognitive tests. ... So having regular timing, it's also a really important part of sleep hygiene."

A designated sleep space: "Another layer for people who have trouble sleeping is trying to make sure that your bed is protected as a place for sleep, so that your brain associates your bed with sleep," she says, explaining the COVID pandemic has shifted the bedroom into a place where people may be working or eating from bed. 

"That can cause trouble when it comes to sleep because, for some people, not having a strong association with 'my bed equals sleep' can lead to different forms of insomnia or trouble sleeping."

In order to help protect your sleep space, she recommends avoiding all of those other activities in the area and really preserve your bed for sleep.

View CBS News In
CBS News App Open
Chrome Safari Continue
const link = doc.createElement('link'); link.rel = 'stylesheet'; link.href = '/fly/fly/bundles/cbsnewscontent/css/cmp-banner.min.css?v=50747257b890e014813016b79ece0fb2'; doc.head.appendChild(link); doc.body.innerHTML = CONSENT_MESSAGE; } else { el.insertAdjacentHTML('afterend', CONSENT_MESSAGE); } }); } function hidePrivacyMessage() { // Remove from the main document document.querySelectorAll(`.${CONSENT_MESSAGE_CLASS}`).forEach(el => el.remove()); // Remove from inside any iframes document.querySelectorAll('iframe').forEach(iframe => { const doc = iframe.contentDocument || iframe.contentWindow.document; doc.querySelectorAll(`.${CONSENT_MESSAGE_CLASS}`).forEach(el => el.remove()); }); } function activateGatedScripts() { // Handle both new format (cmp-gated-script) and old OneTrust/Ketch format (optanon-category-4) const gatedScripts = Array.from(document.querySelectorAll('script.cmp-gated-script, script.optanon-category-4')); // Activate scripts sequentially with a small delay to avoid timing issues let delay = 0; gatedScripts.forEach(function(placeholder, index) { setTimeout(function() { // Skip if already processed if (placeholder.hasAttribute('data-cmp-processed')) { return; } placeholder.setAttribute('data-cmp-processed', 'true'); const newScript = document.createElement('script'); newScript.type = 'text/javascript'; // Try new format first (data-cmp-src), then fall back to old format (data-src) const src = placeholder.getAttribute('data-cmp-src') || placeholder.getAttribute('data-src'); if (src) { newScript.src = src; } else if (placeholder.textContent) { // Inline script - just copy the content newScript.textContent = placeholder.textContent; } // Handle new format attributes (data-cmp-attrs) - for both inline and external scripts const attrs = placeholder.getAttribute('data-cmp-attrs'); if (attrs) { const tempDiv = document.createElement('div'); tempDiv.innerHTML = '
<\/div>'; const tempAttrs = tempDiv.firstChild.attributes; for (let i = 0; i < tempAttrs.length; i++) { // For external scripts, allow defer/async. For inline scripts, skip them (not valid) if (src || (tempAttrs[i].name !== 'async' && tempAttrs[i].name !== 'defer')) { newScript.setAttribute(tempAttrs[i].name, tempAttrs[i].value); } } } // Copy other attributes from old OneTrust format for (let i = 0; i < placeholder.attributes.length; i++) { const attr = placeholder.attributes[i]; // Skip attributes we've already handled or don't want to copy if (!['class', 'data-src', 'data-type', 'data-cmp-src', 'data-cmp-attrs', 'data-cmp-processed', 'type', 'async', 'defer', 'src'].includes(attr.name)) { newScript.setAttribute(attr.name, attr.value); } } placeholder.parentNode.replaceChild(newScript, placeholder); // If external script, manually trigger window.onload handlers after it loads // This handles widgets that use window.onload for initialization if (src) { newScript.addEventListener('load', function() { // If page already loaded and script set a new onload handler, trigger it if (document.readyState === 'complete' && window.onload) { const originalOnload = window.onload; window.onload = null; // Clear temporarily to prevent loops originalOnload(); // Execute the handler } }); } }, delay); delay += 500; // 500ms delay between each script to allow full loading }); } cbsoptanon.onScriptsReady(function(cmp) { cmp.ot.targetingAllowed(function(allowed) { if (!allowed) { showPrivacyMessage(); } else { activateGatedScripts(); } }); cmp.ot.awaitInitialConsent(function(consent_model) { cmp.ot.addOnConsentChangedHandler(function() { cmp.ot.targetingAllowed(function(allowed) { if (allowed) { hidePrivacyMessage(); activateGatedScripts(); } else { showPrivacyMessage(); } }); }); }); });