Are you having problems with rounded corners with jquery not working right away in asp.net mvc app

I am using the rounded corners plugin for jquery and the rounding work items are working on it. The only problem I am having is that the elements are displayed on the page without rounding and then rounded. What do I need in order for items to appear only rounded?

I originally put script tags in the head element, but should they go elsewhere on the main page to improve perf?

0


source to share


2 answers


This is because items are not rounded by default; it's the javascript that wraps around them. It looks like your js is taking a while to load and why you are seeing a flash.



To fix this, you will have to load the .js faster. This usually reduces the size of your page. Also, while not recommended, you can move the Javascript to the top of the page so it loads earlier and see if that has an effect.

+1


source


There are also various approaches to creating rounded corner boxes using jQuery. Which plugin are you using? My recommendation is http://jrc.meerbox.nl/?page_id=4 (Demo here )



+1


source







All Articles