Find Jobs
Hire Freelancers

JS Print Button - Problem with Async as it calls External Script.

$30-250 USD

완료함
게시됨 2년 이상 전

$30-250 USD

제출할때 지불됩니다
Our website uses a JS script on the main page. This specific JS script is called a different way as it provides info for the print service. The main calls this script like this. <script async type="text/javascript"> (function() { var p=[login to view URL]("script");p.type="text/javascript";p.async=true; var h=("https:"==[login to view URL]"https://":"http://"); p.src=h+"[login to view URL]"; var s=[login to view URL]("script")[0];[login to view URL](p,s); }).call(this); [login to view URL] = 'async'; </script> Which in theory should load async, but does not. The headers of that page loads another external script like this var timestamp = "03-03-2019 18:24"; var checkoutUrl = ('https:' == [login to view URL] ? 'https://' : 'http://') + '[login to view URL]'; var baseAssetUrl = ('https:' == [login to view URL] ? 'https://' : 'http://') + '[login to view URL]'; if (![login to view URL]) { var head = [login to view URL]('head')[0]; var script = [login to view URL]('script'); [login to view URL] = 'text/javascript'; [login to view URL] = baseAssetUrl + '/storage/javascript/[login to view URL]'; [login to view URL](script); } I have copied these two external scripts locally to /waitme/[login to view URL] /waitme/[login to view URL] Can these also be merged into one script instead of one calling the other? --- IDEAL SOLUTION Merge the 2 external scripts into 1 local script and only have the main page button call that script .... When the button is clicked, Not Everytime the page loads. --- a fantastic review will be given if you can get it to load async, Or not at all if it is called when the button is clicked... even better.
프로젝트 ID: 32622994

프로젝트 정보

5 제안서
원격근무 프로젝트
활동 중 2년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hello Nice to meet you. I'm a Web developer, with over 12 years of experience dealing with Javascript. I can fix the issue sure. I can start your project immediately. I look forward to working on this project with you. Thank you.
$100 USD 1일에
5.0 (3 건의 리뷰)
1.8
1.8
5 이 프로젝트에 프리랜서들의 평균 입찰은 $156 USD입니다.
사용자 아바타
Hi, I can fix your problem which you are facing with Async as it calls External Script on Js script. Let me know when you here to discuss more in detailed about Job. I am having 10 years experience on JS development. You can check my profile : https://www.freelancer.com/u/AltiuseCreaton for my skills and work. Looking forward to your project Regards Rina
$250 USD 1일에
5.0 (159 건의 리뷰)
7.6
7.6
사용자 아바타
Hi there, I can help you with this and would love to work with. Kindly share details so I can go through and start work ASAP. An experienced WordPress, Ecommerce, website, mobile app developer & expert in (PHP,HTML,JavaScript,MySQL,Node.js,React.js,Laravel,Amazon Web Services,Flutter,Web Hosting,Web Development,jQuery/Prototype,Software Development,Codeigniter) , also a hard-working, reliable freelance Web Developer. I love being in this line of work because I am passionate about technology, design, and innovation. I also like to learn the latest technologies and continuously improve myself. I can assure you to provide excellent quality work in a very short span of time. 100% client satisfaction is my first priority. Contact us on WhatsApp +916207976982. Thanks!
$140 USD 7일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (NEW ZEALAND)
Auckland, New Zealand
5.0
28
결제 수단 확인
3월 17, 2011부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.