Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Page A have iframe if I click on page B and go back to page A , the iframe disappear

I'm using Next.js you can check the website here https://joe-mechlinski.vercel.app/ The iframe in the index page, try to go to another page and go back to the index page you will see the Twitter iframe disappear.

// TwitterFrame Component
import Script from "next/script";

const TwitterFrame = () => {
  return (
    <>
      <section className="twitter-sec flex flex-col mt-20 items-center justify-center   bg-[#110b57]">
        <div className="pt-16 md:w-1/2 loadIframe">
          <a
            className="twitter-timeline"
            data-height="500"
            data-theme="light"
            href="https://twitter.com/joemechlinski?ref_src=twsrc%5Etfw"
          >
            Tweets by joemechlinski
          </a>
          <iframe
            id="twitter-widget-0"
            scrolling="no"
            frameBorder="0"
            allowFullScreen={true}
            className="twitter-timeline twitter-timeline-rendered"
            data-widget-id="profile:joemechlinski"
            title="Twitter Timeline"
          />
          <Script
            src="https://platform.twitter.com/widgets.js"
            charSet="utf-8"
            strategy="afterInteractive"
            onError={(e) => {
              console.error("Script failed to load", e);
            }}
            onLoad={(e) => console.log(e)}
          ></Script>
        </div>
        <a
          href="https://twitter.com/joemechlinski?ref_src=twsrc%5Etfw"
          className="text-white font-normal text-base bg-[#5541D9] py-4 px-8 -mt-12 mb-12"
        >
          Follow Along
        </a>
      </section>
    </>
  );
};

export default TwitterFrame;
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!