The recommended method for embedding iframes is using the <iframe>
tag. It makes for better syntax and also allows you to control the iframe much better.
For example, you are able to remove an iframe’s border, control scrolling options, etc.
<iframe src="https://jsfiddle.net/o7usdL0a/embed/result/" style="width: 100%; height: 300px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0">
</iframe>
The <script async>
and the <iframe>
methods are both the same when it comes to site performance as they are both asynchronous. If you use the tag it will load asynchronously by default, so no need to worry about blocking code.
Related Posts:
- How do you use JavaScript to detect the homepage
- Storing posts from query and accessing later via AJAX call
- JS innerhtml changing style when using AJAX
- Add extra parameters after permalink?
- Delete all posts of a custom post type—efficiently
- Submit post and upload image from front-end
- Linking Two Post Types
- Limit the word count in the post title
- WordPress Custom Post Type Admin Page really slow
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Problem excluding category from get_next_post
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- Structuring a product catalogue in WordPress [closed]
- Multiple information using custom post type
- Get the post children count of a post
- Quickest way to get last or oldest post date – WP Query
- How to use custom fields to enable sticky posts on custom post types?
- get_template_part for custom post type content not working
- Show Two custom Post type and their posts on category page
- count_many_users_posts except current logged in user?
- Custom post type and body_class: Remove “blog” class
- Find the user who initially created the post
- How to get the post type from a category id?
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Getting posts under the custom post type ui category
- Getting a PHP Notice when using Pods with WPML [closed]
- create parent post using wp_insert_post
- Turn on and off custom post type from admin?
- I would like to have different styles for my posts based on the content of each post
- List custom taxonomy specific to one custom post type
- Add custom post type settings to wordress default posts
- Set a checkmark in a category based on a URL-parameter
- Portfolio Page for Classic Posts
- Limit the post for differents custom post type in the same wp_query
- How can i create an custom post template for an specific post category? [closed]
- WP the_posts() on single-cars.php get category link
- how to check if custom post title exists or not?
- Modify previous and next post links to current Authors Other posts
- Extracting Address from Custom Post via Javascript for Google Maps API
- Multiple pages per post (not pagination)
- Display an authors post on a single page only when they are logged in
- Get_the_terms restrict output
- Generate new post from email
- YOAST SEO won’t work on custom post type archive [closed]
- Batch Extract Date from post title and put into ACF custom field
- How to add new post using a form to categories when categories are using as menu
- Custom wordpress loop
- Different post title, keywords and description
- how to get options to choose post format in add new post
- Use post in multiple places on a page with multiple posts
- WordPress post carousel
- How to setup different permlalinks for posts and pages?
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Custom post type filter is being applied to all of my posts
- Weird issue where form field loses focus to previous form field even with JS disabled
- WordPress/Javascript form not working on custom post type single posts
- Admin slow on Postlist (over 30k Posts in Database)
- Get_post_custom not fetching value from array wordpress
- Display Parent-Child Posts in specific order by comparing IDs in array
- Post category behave like a Post in back office menu
- Save data is post using php front end
- What is the best way to structure posts for the same event happening in different years?
- How to display custom field in product description?
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Randomizing WordPress Custom Post Type Sorting Through Them Without Page Refresh
- Custom page with no headers, footers and its own CSS, Javascript
- SEARCH QUERIES – REVERSE OUTPUT
- Is there a way to create a sidebar of bullets
- Why doesn’t wp_delete_post allow trashing for custom types?
- Get queried object for custom post type count
- edit.php all post not working
- I cannot display custom posts in custom taxonomy
- How can I get the last 5 element of this tax query?
- How to get the posts that my following users are liked?
- How to insert post 6 times after user register like ask.fm
- How can i order my posts by post type?
- Creating custom post type relationships
- WP_posts (Not meta) extra custom field column show and change it in a custom post type
- how to make custom post with “publish” default functionality not save in draft?
- How to mark posts as visited
- Redirect sub-page URLs to parent without changing URL
- How To Loop Through list with Custom Post Types
- Adding Information To All Posts Screen
- Different post types arranged on one page
- erase post excerpt limitation [×]
- How can I convert custom posts types into regular posts?
- Display all post types together
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom My account page and custom page for editing posts
- Top 30 Songs using Custom Post Type
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- Wp-theme Development
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj
- Display code if title of the custom post matches title of other post
- Sort ACF by custom taxonomy