An Instagram feed embed load more button accessibility problem rarely shows up on a first look. The feed renders, the first row of photos appears, and everything seems fine with a mouse. Then someone tabs to the control, presses Enter, twelve new posts appear silently, focus vanishes, and the page jumps. This guide walks through the markup and the test procedure for the control that appends posts after interaction, so you can check it in one sitting before launch.
The load more control is different from the rest of the feed because it changes the DOM after the visitor acts. Page-load accessibility checks (alt text, heading order, iframe titles) will pass while the control itself fails. For broader alt text and caption work, the existing guide on Instagram feed alt text and captions accessibility covers the static side; this article covers the interactive side.
WidgetJar is an embeddable widget platform: you create and configure the feed in the panel, then install the WidgetJar embed script on the registered website domain. The checks below apply to that setup, and to any embedded feed that appends posts.
Baseline the feed before you test the control
Capture numbers first so you can tell accessibility work apart from performance regressions. In Chrome DevTools, record a performance trace on a throttled mobile profile and note the LCP element and CLS. Google's guidance on optimizing Largest Contentful Paint treats 2.5 seconds as the target at the 75th percentile and separates LCP into four subparts (time to first byte, resource load delay, resource load duration, element render delay). Writing down the LCP element name before you touch anything tells you whether the feed or your hero image is the largest paint.
Then confirm the feed's initial state:
- How many posts render before the load more control appears at each breakpoint?
- Does the control appear at all on desktop but not mobile, or the reverse?
- Is the button visible before the feed's images finish loading?
If the control is not rendered until JavaScript finishes, note that. A control that materializes late is still usable, but it needs a reserved slot so the feed does not shove the page around when it appears.
Give the control a real button and a label that names the action
Start with the element itself. Use a native <button type="button">. A native button gets keyboard activation, focus styles, and a role announced as a button without extra attributes. A styled <div> with a click handler needs role="button", tabindex="0", and a keydown handler for both Enter and Space — three chances to get it wrong.
Then fix the label. "More", "Load" and a chevron icon announce nothing useful out of context. Screen reader users often arrive at a control from the rotor or the tab list without reading the surrounding section, so the label has to stand alone:
<section aria-labelledby="ig-feed-heading">
<h2 id="ig-feed-heading">Latest from our Instagram</h2>
<ul id="ig-feed-list">
<!-- initial posts -->
</ul>
<button type="button" id="ig-load-more" aria-controls="ig-feed-list">
Load more Instagram posts
</button>
</section>
Once every post is shown, either remove the button or disable it and change its label to something like "All posts loaded". A button that stays enabled but does nothing is a dead end for keyboard users.
Decide what should happen to focus after activation
Focus behavior is where most of these controls fail. The correct pattern depends on what happens to the button:
- Button stays in place. Keep focus on the button. It is the most predictable outcome: the visitor can press Enter again for the next batch. Do not move focus into the new content.
- Button is removed or hidden after the last batch. Move focus to a logical place, usually the heading above the feed or the first newly added post. Losing focus to the document body sends a screen reader user back to the top of the page.
What you should not do is move focus to the first new post on every activation. That forces the visitor to tab back down through new content to reach the control for the next batch. This is the same reasoning that underlies focus-return rules for popups; the existing modal focus management test script explains the general principle of returning or placing focus deliberately rather than letting it drop.
While the request is in flight, change the button's accessible text to a busy state rather than a bare spinner. A spinner with no text announces as nothing.
Announce new posts without repeating the feed
Appending twelve posts changes the DOM silently. A polite live region that states the outcome is usually the right amount of feedback:
<p id="ig-status" role="status" aria-live="polite"></p>
<!-- after a successful append -->
Ig status text: "12 more posts loaded. 24 of 36 shown."
Keep the message short and avoid putting post captions inside the live region, or the visitor hears a wall of text. If you also place the region on the page at load time (not injected on click), some screen readers will read it reliably; injecting a new live region at the moment of the update is far less dependable.
The existing article on Instagram feed embed ARIA live region announcements goes deeper on region placement and wording; for this control, the test is simple: activate the button and listen for exactly one short announcement, not the whole feed again.
Alt text on newly loaded images
Newly appended posts need the same alt treatment as the first batch. MDN's reference for the <img> element explains that an empty alt="" marks an image as decorative, telling non-visual browsers to skip it. That is correct for a decorative avatar, wrong for a product photo that carries meaning.
Keep a consistent source for alt text across batches — a dedicated field or a trimmed caption — so the eleventh post is not worse than the first. If the widget takes alt text from captions, watch for duplicate announcements: the caption text and the image alt can both be read. Test the first batch and the appended batch separately, because the append path sometimes bypasses the alt logic that the initial render uses.
Keyboard test script: run it for each batch
Run this on the page as built, with the mouse put away:
- Press Tab from the top of the page. Confirm you reach the load more button and the focus ring is visible against the feed's background.
- Confirm the accessible name reads as an action, not a fragment. In DevTools, check the Accessibility pane for the computed name.
- Activate with Enter. Then reload and activate with Space. Both must trigger a load exactly once.
- After the load, confirm focus is still on the button (or on the intended target if the button disappeared). If focus jumped to the page body, that is a failure.
- Listen for the live region message. Confirm it names the count and does not re-read the feed.
- Continue pressing Enter until the final batch. Confirm the button is removed or disabled with an honest label, and confirm focus still has somewhere sensible to be.
- Tab through the newly added posts with the keyboard. Links inside posts must be reachable in DOM order.
- Repeat with a screen reader — one pass with NVDA on Windows and one with VoiceOver on macOS or iOS is enough for a pre-launch check.
Re-measure layout shift after several loads
Each append adds rows of posts. If the feed's container has no reserved or growing height, the page content below the feed jumps on every click. On mobile this is the most obvious defect, and it is a CLS problem, not just an annoyance.
Reserve space by setting a width and height or aspect-ratio on each post tile so tiles do not resize as their images decode — MDN notes that including width and height lets the browser compute an aspect ratio before the image loads, which reduces layout shift. Then re-record CLS across three sequential loads on a throttled mobile profile. Compare against the baseline you captured at the start; if the feed is the LCP element, also check that appending posts has not turned a later image into the new LCP after a click.
Performance guard for the first render
Accessibility work should not be undone by a feed that blocks the first paint. Two practical guards:
- Cap the initial post count. Fewer initial posts mean a smaller initial DOM and a shorter time before the control is usable.
- Defer the embed script so it does not compete with the hero content for bandwidth, then re-test LCP after the first batch loads.
Both ideas are expanded in the Instagram feed click-to-load facade performance guide, which covers the measure-defer-retest loop in detail.
Pre-launch checklist
- One page test per breakpoint (mobile, tablet, desktop), since the control may be hidden or restyled per width.
- One screen reader pass on the activation path, plus one keyboard-only pass with no mouse.
- Alt text verified on both the first and a later batch.
- Live region emits one concise message per load.
- Final batch removes or disables the button with an updated label.
- CLS and LCP re-measured after three loads and compared with the baseline.
- A note on what to re-test when captions, post counts or feed layout change.
Set the feed up and test it on the real page
Configure your feed, install the script on the registered domain, and then run the keyboard script above on the live page rather than a preview, because focus and live region behavior differ once other scripts are present. Start with the Instagram feed widget to build the feed, then use a reserved-space layout and a native button so the load more control stays predictable for every visitor.